:root {
  --fg: #111;
  --bg: #f0f0f0;
  --muted: #555;
  --max-width: 40rem;
  --bar-width: 7rem;
  --drawer-width: 16rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  padding-left: var(--bar-width);
}

main {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  color: var(--muted);
  margin: 0;
}

main p + p {
  margin-top: 1.5rem;
}

main p + .dream__quote {
  margin-top: 2rem;
}

.dream__quote,
.contact__quote {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--fg);
  color: var(--fg);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-style: italic;
  line-height: 1.3;
}

.contact__quote {
  margin-bottom: 3rem;
}

.contact__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}

.contact__list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
}

.contact__item + .contact__item {
  border-top: 1px solid #ddd;
}

.contact__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--fg);
}

.contact__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact__text {
  color: var(--muted);
}

.contact__list a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.contact__list a:hover {
  color: var(--muted);
}

.drive__figure {
  margin: 2rem 0 0;
}

.drive__image {
  display: block;
  width: 100%;
  height: auto;
}

.drive__credit {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muted);
}

.home {
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3rem);
}

.home__lead {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(1.3rem, 5vw, 2.25rem);
  line-height: 1.35;
}

.countdown {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
}

.countdown__value {
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--bar-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  z-index: 30;
}

.sidebar__home {
  display: inline-flex;
  padding: 0.5rem;
  color: var(--fg);
}

.sidebar__home:hover {
  color: var(--muted);
}

.sidebar__thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
}

.menu-toggle:hover {
  color: var(--muted);
}

.menu-toggle__open,
.menu-toggle__close {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.menu-toggle svg {
  width: 46px;
  height: 46px;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle__label {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-toggle__open svg rect {
  fill: currentColor;
}

.menu-toggle__close svg line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: inline-flex;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--bar-width);
  width: var(--drawer-width);
  background: #fff;
  border-right: 1px solid #e5e5e5;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  transform: translateX(calc(-100% - var(--bar-width)));
  transition: transform 0.25s ease;
  z-index: 20;
  padding: 1.5rem;
}

.menu-drawer.is-open {
  transform: translateX(0);
}

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

.menu-list li + li {
  margin-top: 0.25rem;
}

.menu-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-list a:hover {
  background: var(--bg);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0.75rem 0;
  border-top: 1px solid #e5e5e5;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-switch:hover {
  color: var(--fg);
}

.lang-switch__flag {
  font-size: 1.25rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .menu-drawer,
  .drawer-backdrop {
    transition: none;
  }
}
