/* ---------- Fonts (hosted locally, see fonts/OFL.txt) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/spectral-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/spectral-300-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spectral-400-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/spectral-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/spectral-500-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/spectral-600-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #FBFAF6;
  --paper: #F4EEE2;
  --ink: #1C1A16;
  --sage: #455230;
  --teal: #307D86;
  --amber: #8A6F3C;
  --plum: #6B5E7A;
  --side-pad: max(20px, 5vw);
}

/* ---------- Reset ---------- */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img, svg {
  max-width: 100%;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ---------- Header ---------- */

.site-header {
  padding-top: 28px;
}

.logo {
  display: block;
  width: clamp(240px, 44vw, 540px);
  height: auto;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 480px) {
  .header-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
  }
}

.badge {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sage);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.lang-select {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--sage);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23455230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 10px 38px 10px 18px;
  min-height: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-select:hover {
  opacity: 0.85;
}

.lang-select:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 14px;
  padding-bottom: 8px;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 82px);
  line-height: 1.15;
  color: var(--ink);
}

.hero-body {
  margin-top: 20px;
  font-size: 18px;
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.85;
}

.hero-tag {
  margin-top: 22px;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--sage);
}

/* ---------- Rooms ---------- */

.rooms {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.room {
  background: var(--paper);
  border-radius: 16px;
  padding: 28px 26px;
}

.room-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.room h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.room p {
  font-size: 18px;
  opacity: 0.85;
}

.room--memories .room-icon { color: var(--teal); }
.room--memories h2 { color: var(--teal); }

.room--legacy .room-icon { color: var(--amber); }
.room--legacy h2 { color: var(--amber); }

.room--letters .room-icon { color: var(--plum); }
.room--letters h2 { color: var(--plum); }

/* ---------- Trust line ---------- */

.trust {
  margin-top: 64px;
  text-align: center;
  font-size: 18px;
  opacity: 0.75;
  padding: 0 10px;
}

/* ---------- Closing ---------- */

.closing {
  margin-top: 48px;
  text-align: center;
}

.closing p {
  font-family: 'Spectral', serif;
  font-size: clamp(22px, 4vw, 28px);
  color: var(--sage);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 72px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(28, 26, 22, 0.1);
}

.footer-company {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  opacity: 0.7;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
}

.footer-links a:hover {
  opacity: 1;
}

/* ---------- Legal pages ---------- */

.legal-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal-main h1 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 28px;
}

.legal-content section + section {
  margin-top: 36px;
}

.legal-content h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 18px;
  line-height: 1.7;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 18px;
  line-height: 1.7;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content code {
  font-family: monospace;
  font-size: 0.9em;
  background: var(--paper);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.legal-content .titleholder {
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-line;
}

.legal-note {
  font-size: 16px;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 16px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border: 1px solid rgba(28, 26, 22, 0.15);
}

.legal-table th {
  background: var(--paper);
  font-weight: 600;
}

.legal-divider {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(28, 26, 22, 0.12);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
}

.back-link:hover {
  opacity: 1;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .rooms {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding-top: 40px;
  }

  .hero {
    padding-top: 24px;
  }
}
