/* The shared header, the phone page sheet and the footer. */
:root { --top-h: 74px; }
@media (max-width: 899px) { :root { --top-h: 64px; } }
.top { position: sticky; top: 0; z-index: 40; background: var(--oven); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.top__in { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); height: 74px; }
.mark { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; line-height: 1; flex: none; }
.mark__word { font: 900 27px/1 var(--display); letter-spacing: -.015em; }
.mark__sub { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }

/* Desktop: the current page carries a score mark, the curved cut a baker makes on a loaf before it goes in. */
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 14px;
  font: 700 16px/1 var(--text); text-decoration: none; color: var(--on-dark-2);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C28 2.5 62 1.5 97 5' fill='none' stroke='%23f3b23a' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .3s var(--ease);
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { clip-path: inset(0 0 0 0); opacity: .55; }
.nav a[aria-current='page'] { color: var(--on-dark); }
.nav a[aria-current='page']::after { clip-path: inset(0 0 0 0); opacity: 1; }

.top__status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-left: clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line-dark); font: 500 13px/1.25 var(--mono); color: var(--on-dark-2); text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease);
}
.top__status:hover { color: var(--on-dark); }
.top__status svg { width: 20px; height: 20px; flex: none; color: var(--yolk); }
.top__here { display: none; }

/* Phone: the bar shows where you are; tapping it opens every page as a sheet. */
@media (max-width: 899px) {
  .top__in { height: 64px; }
  .mark__word { font-size: 24px; }
  .nav, .top__status { display: none; }
  .top__here {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 48px; padding: 0 6px 0 14px; white-space: nowrap;
    background: transparent; border: 1.5px solid var(--line-dark); border-radius: 6px; cursor: pointer;
    font: 700 16px/1 var(--text); color: var(--on-dark); transition: border-color .2s var(--ease), background-color .2s var(--ease);
  }
  .top__here:hover { border-color: var(--on-dark-2); background: var(--oven-2); }
  .top__here small { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
  .top__here svg { width: 34px; height: 34px; padding: 8px; background: var(--yolk); color: var(--ink); border-radius: 4px; }
}

.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--oven) var(--flour-dust); background-size: 220px; color: var(--on-dark); overflow-y: auto;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .5s var(--ease); }
.sheet::backdrop { background: rgba(10, 8, 6, .7); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-18px); } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line-dark); flex: none; }
.sheet__close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer;
  background: var(--yolk); color: var(--ink); border: 0; border-radius: 6px; font: 700 16px/1 var(--text);
}
.sheet__close svg { width: 16px; height: 16px; }
.sheet__list { padding: 6px 0; }
.sheet__list a {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center; padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-dark); text-decoration: none; transition: background-color .2s var(--ease);
}
.sheet__list a:hover { background: var(--oven-2); }
.sheet__list img { grid-row: span 2; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.sheet__name { position: relative; justify-self: start; font: 900 clamp(2rem, 9vw, 2.6rem)/1 var(--display); letter-spacing: -.015em; }
.sheet__note { font: 500 12px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.sheet__list a[aria-current='page'] .sheet__name { color: var(--yolk); }
.sheet__list a[aria-current='page'] .sheet__note::before { content: 'You are here · '; color: var(--yolk); }
.sheet__foot { margin-top: auto; padding: 22px var(--gutter) 28px; display: grid; gap: 14px; }
.sheet__foot p { margin: 0; color: var(--on-dark-2); }
.sheet__foot strong { color: var(--on-dark); display: block; font: 800 22px/1.15 var(--display); }

/* Footer: a headed site map and the name, set big. */
.foot { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 80px); background-color: var(--oven); border-top: 1px solid var(--line-dark); }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px clamp(20px, 3vw, 48px); }
.foot__h { margin: 0 0 14px; font: 600 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yolk); }
.foot p, .foot li { color: var(--on-dark-2); font-size: 16px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--on-dark); transition: color .2s var(--ease); }
.foot li a:hover { color: var(--yolk); }
.foot p a { color: var(--on-dark); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; transition: color .2s var(--ease); }
.foot p a:hover { color: var(--yolk); }
.foot .foot__word {
  margin: clamp(40px, 6vw, 72px) 0 0; font: 900 15.6vw/.74 var(--display); letter-spacing: -.035em;
  color: var(--crust-2); text-align: center; white-space: nowrap; user-select: none; transform: translateY(.06em);
}
.foot__note { position: relative; margin: 0 auto; padding: 18px 0 22px; border-top: 1px solid var(--line-dark); font: 500 14px/1.5 var(--mono); color: var(--on-dark-2); }
@media (max-width: 899px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459px) { .foot__grid { grid-template-columns: 1fr; gap: 26px; } }
