@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/bricolage-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/bricolage-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --card: #fffdf8;
  --ink: #232f25;
  --muted: #555c50;
  --line: #e3ded0;
  --green: #324d36;
  --green-light: #e5ecda;
  --gold-light: #f8ebce;
  --rose-light: #f9e7dd;
  --purple-light: #ece6f6;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 "DM Sans", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h4 {
  font-family: var(--display);
  line-height: 1.12;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #77531f;
  outline-offset: 4px;
}

.shell {
  width: min(1100px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.nav-link,
.hero-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  font: 800 1.8rem / 1 var(--display);
  letter-spacing: -.055em;
}

.brand-icon {
  display: grid;
  width: 37px;
  height: 37px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: #f5e3b9;
  color: #72511a;
  font: 700 1.45rem / 1 system-ui, sans-serif;
}

.brand-dot {
  color: #ae642f;
}

.nav-link {
  min-height: 44px;
  gap: 9px;
  padding-inline: 15px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
}

.nav-link:hover {
  background: #d8e4cc;
}

.calendar-icon {
  position: relative;
  width: 15px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.calendar-icon::before,
.calendar-icon::after {
  position: absolute;
  content: "";
}

.calendar-icon::before {
  inset: 3px 0 auto;
  border-top: 1.5px solid currentColor;
}

.calendar-icon::after {
  inset: -4px 2px auto;
  height: 4px;
  border-inline: 1.5px solid currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 324px;
  margin-top: 34px;
  border: 1px solid #eadcba;
  border-radius: 28px;
  background: #faedcb;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 37%;
  width: 20%;
  background: linear-gradient(90deg, #faedcb 6%, #faedcb00 100%);
  content: "";
}

.hero-content {
  width: 53%;
  padding: 42px 16px 42px clamp(26px, 5.4vw, 62px);
}

.hero h1 {
  font-size: clamp(3rem, 6.1vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -.075em;
}

.hero p {
  max-width: 29ch;
  margin-top: 12px;
  color: #4e4e38;
  font-size: clamp(1rem, 1.7vw, 1.175rem);
}

.hero-link {
  min-height: 45px;
  margin-top: 23px;
  padding-inline: 17px;
  gap: 12px;
  border-radius: 9px;
  background: #294332;
  color: #fffdf5;
  font-size: .875rem;
  font-weight: 700;
}

.hero-link:hover {
  background: #3c5b43;
}

.hero-link span {
  font-size: 1.2rem;
  line-height: 1;
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  align-items: start;
  gap: clamp(28px, 4.1vw, 56px);
  margin-top: 47px;
}

#harmonogram {
  scroll-margin-top: 22px;
}

#schedule-title {
  font-size: clamp(1.9rem, 3.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.section-intro {
  margin-top: 8px;
  color: var(--muted);
}

.day-part {
  margin-top: 29px;
}

.day-part-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.day-part-title::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-bottom: 9px;
}

.event:last-child {
  padding-bottom: 0;
}

.event::before {
  position: absolute;
  top: 34px;
  right: calc(100% - 77px);
  bottom: -34px;
  width: 1px;
  background: var(--line);
  content: "";
}

.event:last-child::before {
  content: none;
}

.event::after {
  position: absolute;
  top: 30px;
  left: 73px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #869778;
  content: "";
}

.event > time,
.time-range {
  padding-top: 22px;
  color: var(--green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-range {
  font-size: .87rem;
  line-height: 1.3;
}

.time-range time {
  display: block;
}

.time-range time:first-child {
  display: inline;
}

.event-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.event-row {
  display: grid;
  min-height: 65px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
}

summary.event-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary.event-row:hover {
  background: #f5f3e9;
}

details[open] {
  border-color: #c8d4be;
}

details[open] > summary {
  background: #f0f3e8;
  border-radius: 13px 13px 0 0;
}

.event-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font: 700 1.13rem / 1 system-ui, sans-serif;
}

.sunshine {
  background: var(--gold-light);
  color: #7d571b;
}

.meal {
  background: var(--rose-light);
  color: #7e4832;
}

.snack {
  background: var(--green-light);
  color: var(--green);
}

.sleep {
  background: var(--purple-light);
  color: #594373;
}

.event-name,
.event h4 {
  font: 700 1.1rem / 1.2 var(--display);
}

.event p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.disclosure {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eeefe4;
  color: var(--green);
}

.disclosure::before {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

details[open] .disclosure::before {
  transform: translateY(2px) rotate(225deg);
}

.meal-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 14px 16px 16px 63px;
  color: var(--muted);
  font-size: .95rem;
}

.meal-ideas li::marker {
  color: #56734f;
}

.day-notes {
  display: grid;
  gap: 16px;
  padding-top: 5px;
}

.note {
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 19px;
}

.note-sleep {
  border-color: #e3ddef;
  background: #f1edf7;
}

.note-food {
  border-color: #dee6d4;
  background: #eef2e7;
}

.note h2 {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.note p {
  margin-top: 9px;
  color: var(--muted);
  font-size: .92rem;
}

.note .sleep-total {
  margin-top: 8px;
  color: #48345d;
  font: 780 2.25rem / 1.08 var(--display);
  letter-spacing: -.05em;
}

.note hr {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid #ded5e8;
}

.source {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-size: .825rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 43px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .shell {
    width: calc(100% - 42px);
  }

  .day-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 24px;
  }

  .note {
    padding: 17px;
  }
}

@media (max-width: 700px) {
  .day-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .day-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 60px;
  }

  .brand {
    font-size: 1.65rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }

  .nav-link {
    padding-inline: 11px;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    margin-top: 18px;
    border-radius: 20px;
  }

  .hero::before {
    display: none;
  }

  .hero-content {
    width: 100%;
    padding: 25px 20px 0;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.1rem);
  }

  .hero-link {
    margin-top: 15px;
  }

  .hero-art {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 156px;
    margin-top: -5px;
    object-position: center 62%;
  }

  .event {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
  }

  .event::before,
  .event::after {
    content: none;
  }

  .event > time {
    font-size: .9rem;
  }

  .event-row {
    gap: 9px;
    padding-inline: 10px;
  }

  .meal-ideas {
    padding-left: 33px;
  }

  .day-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-wrap: wrap;
    margin-top: 30px;
  }
}
