/* ==========================================================================
   Astrallae Litora — Homepage stylesheet
   Cleaned and corrected from the team's figma-html package.
   Design tokens follow the Astrallae Litora visual identity.
   Launch typography: open-source stand-ins (Cormorant Garamond + Inter) for
   the eventual paid Canela/Tiempos + Söhne. Swap the two @font stacks only.
   ========================================================================== */

:root {
  /* Palette (from visual identity) */
  --limestone:      #F4F1EA;   /* page ground */
  --limestone-deep: #EBE7DE;   /* alternate ground */
  --crna:           #1C2226;   /* primary text */
  --slate:          #46545C;   /* secondary text, standfirsts */
  --karst:          #A9A69D;   /* captions, metadata */
  --verdigris:      #5E7B6F;   /* sole accent */
  --rule:           #D3CEC4;   /* hairlines */

  /* Typography */
  --display: "Cormorant Garamond", "Canela", "Tiempos Headline", Georgia, serif;
  --sans: "Inter", "Söhne", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --page: 1200px;
  --gutter: clamp(24px, 6vw, 96px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--crna);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; width: 100%; height: auto; object-fit: cover; }

.page-shell {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--crna); color: var(--limestone);
  padding: 10px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 2px; }

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.site-header {
  position: absolute; z-index: 5; top: 0; left: 0; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 34px var(--gutter); color: var(--limestone);
}

.menu-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: inherit;
  font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.menu-icon { position: relative; display: block; width: 18px; height: 9px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor;
}
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }

.brand { text-align: center; }
.brand-name {
  display: block; margin: 0; font: 400 34px/.95 var(--display);
  letter-spacing: .04em; text-transform: uppercase; color: inherit;
}
.brand-descriptor {
  display: block; margin-top: 10px; font: 500 11px/1 var(--sans);
  letter-spacing: .3em; text-transform: uppercase;
}

.desktop-nav {
  justify-self: end; display: flex; align-items: center; gap: 26px; padding-top: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.desktop-nav a:hover { color: rgba(255,255,255,.75); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 640px; display: flex;
  background: url("assets/hero.jpg") center/cover no-repeat; color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,27,.04), rgba(14,26,38,.14) 45%, rgba(11,24,38,.34));
}
.hero-content {
  position: relative; margin: auto auto; padding-top: 60px; text-align: center;
  max-width: 760px;
}
.hero-statement {
  margin: 0; font: 400 clamp(38px, 6vw, 60px)/1.0 var(--display); letter-spacing: -.01em;
}
.hero-definition {
  margin: 22px auto 0; max-width: 52ch;
  font-size: clamp(14px, 1.5vw, 17px); line-height: 1.55; color: rgba(255,255,255,.92);
}
.hero-rule { width: 30px; height: 1px; background: rgba(255,255,255,.85); margin: 26px auto 0; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: #fff;
}
.scroll-cue span { display: block; width: 1px; height: 40px; background: rgba(255,255,255,.75); margin: 0 auto 10px; }

/* -------------------------------------------------------------------------- */
/* Shared section furniture                                                   */
/* -------------------------------------------------------------------------- */
.section-label, .section-heading h2 {
  margin: 0; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verdigris);
}
.eyebrow {
  margin: 0 0 10px; color: var(--verdigris);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.text-link {
  display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--verdigris);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--crna);
}
.text-link:hover { color: var(--verdigris); }

/* -------------------------------------------------------------------------- */
/* Featured                                                                   */
/* -------------------------------------------------------------------------- */
.opening { padding: 88px 0 72px; }
.opening .section-heading { margin-bottom: 28px; }
.featured-grid { display: grid; grid-template-columns: 56% 1fr; gap: 56px; align-items: center; }
.featured-grid img { aspect-ratio: 3 / 2; transition: opacity .2s ease; }
.featured-grid a:hover img { opacity: .93; }
.featured-grid h3 { margin: 0 0 20px; font: 400 clamp(32px, 3.8vw, 46px)/1.05 var(--display); color: var(--crna); }
.featured-grid h3 a { color: inherit; text-decoration: none; }
.featured-grid h3 a:hover { color: var(--verdigris); }
.featured-grid .standfirst { margin: 0 0 26px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--slate); max-width: 46ch; }
.opening h2 { margin: 0 0 16px; font: 400 clamp(30px, 3.4vw, 40px)/1.05 var(--display); color: var(--crna); }
.opening h2 a:hover { color: var(--verdigris); }
.opening .standfirst { margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--slate); max-width: 44ch; }

/* Coming-soon status on unbuilt entities */
.status {
  margin: 8px 0 0; font-size: 10px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--karst);
}
.entity-card:has(.status) h3 { color: var(--slate); }

/* -------------------------------------------------------------------------- */
/* Places / Hotels band                                                       */
/* -------------------------------------------------------------------------- */
.entity-band {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.entity-column { padding: 40px 40px 48px 0; }
.entity-column + .entity-column { border-left: 1px solid var(--rule); padding: 40px 0 48px 40px; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-heading a {
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.section-heading a:hover { color: var(--verdigris); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.entity-card img { aspect-ratio: 4 / 5; transition: opacity .2s ease; }
.entity-card a:hover img { opacity: .92; }
.entity-card h3 { margin: 14px 0 6px; font: 400 19px/1.1 var(--display); color: var(--crna); }
.entity-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--slate); }

/* -------------------------------------------------------------------------- */
/* Journal                                                                    */
/* -------------------------------------------------------------------------- */
.journal-section { padding: 72px 0 80px; }
.journal-layout { display: grid; grid-template-columns: 3fr 1.05fr; gap: 48px; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-content: start; }
.journal-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.journal-card img { aspect-ratio: 4 / 5; }
.journal-card h3 { margin: 0 0 8px; font: 400 19px/1.15 var(--display); }
.journal-card h3 a:hover { color: var(--verdigris); }
.journal-card p:not(.eyebrow) { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--slate); }
.journal-card time { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--karst); }

.philosophy {
  align-self: start; background: var(--limestone-deep);
  padding: 36px 32px; border: 1px solid var(--rule);
}
.philosophy > p:not(.eyebrow) { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: var(--slate); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1.2fr; gap: 44px; }
.footer-wordmark { margin: 0 0 8px; font: 400 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.footer-brand p { margin: 4px 0; font-size: 13px; color: var(--slate); }
.publisher { margin-top: 14px !important; font-weight: 500; color: var(--crna) !important; }
.socials { margin-top: 16px !important; display: flex; gap: 14px; }
.socials a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.socials a:hover, .footer-grid nav a:hover, .footer-grid div a:hover { color: var(--verdigris); }
.footer-h { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--verdigris); }
.footer-grid nav a, .footer-grid > div a { display: block; margin-bottom: 8px; font-size: 13px; color: var(--slate); }
.record p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--slate); max-width: 30ch; }

.footer-bottom {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--karst);
}
.footer-bottom a:hover { color: var(--verdigris); }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .entity-band { grid-template-columns: 1fr; }
  .entity-column, .entity-column + .entity-column {
    border-left: 0; padding: 44px 0;
  }
  .entity-column + .entity-column { border-top: 1px solid var(--rule); }
  .journal-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 24px var(--gutter); }
  .desktop-nav { display: none; }
  .brand-name { font-size: 24px; }
  .hero { min-height: 600px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .journal-grid { grid-template-columns: 1fr; }
  .desktop-only { display: none; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* -------------------------------------------------------------------------- */
/* v2.1 overrides — Places-only launch, no imagery except hero                */
/* -------------------------------------------------------------------------- */

/* Header keeps 3-col grid balance without the menu button */
.header-spacer { display: block; }

/* Opening lead is now text-only (Porto has no placeholder image) */
.opening { padding: 96px 0 84px; }
.opening-lead { max-width: 720px; }
.opening-lead h2 {
  margin: 0 0 20px; font: 400 clamp(34px, 4.4vw, 52px)/1.04 var(--display); color: var(--crna);
}
.opening-lead h2 a:hover { color: var(--verdigris); }
.opening-lead .standfirst {
  margin: 0 0 28px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6;
  color: var(--slate); max-width: 60ch;
}

/* Places band — single full-width section, two coming-soon cards */
.places-band {
  padding: 8px 0 96px;
  border-top: 1px solid var(--rule);
}
.places-band .section-heading { margin-top: 56px; margin-bottom: 32px; }
.places-band .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 860px;
}
.places-band .entity-card {
  padding: 32px 0 8px;
  border-top: 1px solid var(--rule);
}
.places-band .entity-card h3 {
  margin: 0 0 12px; font: 400 clamp(22px, 2.4vw, 28px)/1.1 var(--display); color: var(--slate);
}
.places-band .entity-card p {
  font-size: 15px; line-height: 1.6; color: var(--slate); max-width: 42ch;
}
.places-band .entity-card .status { margin-top: 16px; }

/* Footer now three columns (no social row, no separate info column) */
.site-footer .footer-grid { grid-template-columns: 1.5fr .7fr 1.1fr 1fr; }
.imprint-line { font-size: 12px; line-height: 1.55; color: var(--slate); margin: 0 0 4px; }
.imprint-line a { color: var(--slate); }
.imprint-line a:hover { color: var(--verdigris); }
.imprint-line strong { color: var(--crna); font-weight: 500; }
.imprint-muted { color: var(--karst); font-style: italic; margin-top: 8px; }

@media (max-width: 900px) {
  .places-band .card-grid { gap: 32px; }
}
@media (max-width: 640px) {
  .places-band .card-grid { grid-template-columns: 1fr; gap: 0; }
  .places-band .entity-card { padding: 28px 0; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
