:root {
  --olive-deep: #6a6811;
  --olive-ink: #4f4e0c;
  --olive-bright: #cbc820;
  --olive-night: #303017;
  --olive-soft: #efeebe;
  --clay: #b9691d;
  --clay-deep: #9f5a19;
  --clay-soft: #f5d8bd;
  --paper: #f8f8ed;
  --card: #fffef6;
  --ink: #24230f;
  --ink-soft: #5d5d46;
  --line: #dcdab0;
  --rail: 96px;
  --bar: 64px;
  --font: "Urbanist", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clay-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--rail);
  padding: 24px 0;
  background: var(--olive-night);
  color: var(--paper);
}

.rail-mark {
  display: block;
  width: 52px;
  height: 52px;
}

.rail-mark img {
  width: 100%;
  height: 100%;
}

.menu-knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--olive-bright);
  color: var(--olive-night);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-knob:hover,
.menu-knob[aria-expanded="true"] {
  background: var(--clay-soft);
}

.menu-knob-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-knob-lines::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.menu-knob-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tongue-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tongue-switch span {
  color: var(--olive-bright);
  line-height: 1;
}

.tongue-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
}

.tongue-switch a:hover {
  color: var(--olive-bright);
}

.tongue-switch a.is-current {
  background: var(--paper);
  color: var(--olive-night);
}

.menu-sheet {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rail);
  z-index: 25;
  width: min(330px, 82vw);
  padding: 48px 32px;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(36, 35, 15, 0.12);
  visibility: hidden;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.menu-sheet.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.menu-sheet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-sheet a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.menu-sheet a:hover {
  color: var(--clay-deep);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--rail);
}

main {
  flex: 1;
}

.column {
  width: min(100% - 48px, 940px);
  margin: 0 auto;
}

.foot {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: start;
}

.foot p {
  margin: 0 0 4px;
}

.foot-name {
  color: var(--ink);
  font-weight: 800;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  color: var(--ink);
  font-weight: 600;
}

.foot-links a:hover {
  color: var(--clay-deep);
}

.foot-copy {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .rail {
    bottom: auto;
    right: 0;
    flex-direction: row;
    width: auto;
    height: var(--bar);
    padding: 0 14px;
  }

  .rail-mark {
    width: 42px;
    height: 42px;
  }

  .tongue-switch {
    flex-direction: row;
    gap: 4px;
    margin: 0 10px 0 auto;
  }

  .menu-knob {
    flex-direction: row;
    padding: 10px 16px;
  }

  .menu-sheet {
    top: var(--bar);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    max-height: calc(100vh - var(--bar));
    padding: 20px 24px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
  }

  .page {
    margin-left: 0;
    padding-top: var(--bar);
  }

  .foot-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .menu-knob-label {
    display: none;
  }

  .column {
    width: min(100% - 32px, 940px);
  }
}
