/* Public landing page. Tokens, type, buttons and tables come from styles.css. */

.landing { background: var(--travertine); }
.landing a:focus-visible, .landing .btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #f6f0e6; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }

/* Top line: the portal's brand mark, one link */
.l-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 48px; border-bottom: 1px solid var(--hair);
}
.l-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; color: var(--charcoal); }
.l-brand img { background: var(--charcoal); border-radius: 50%; }
.l-brand:hover { text-decoration: none; }
.l-signin { font-size: 14px; font-weight: 500; }

/* Hero: text on stone, the gate medallion on a terracotta plaster panel that runs to the edge */
.l-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(720px, calc(100vh - 67px)); }
.l-hero-text { padding: 88px 64px 72px 48px; display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.l-hero h1 { font-size: clamp(52px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.025em; margin: 6px 0 22px; }
.l-lede { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); max-width: 30em; margin-bottom: 28px; }
.l-address {
  font-style: normal; font-size: 15px; line-height: 1.6; color: var(--charcoal);
  border-top: 1px solid var(--charcoal); border-bottom: 1px solid var(--hair); padding: 14px 0; margin-bottom: 26px; max-width: 26em;
}

.l-plate {
  position: relative; margin: 0; background-color: #9b5a41; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 96px 40px 110px;
}
/* Same lime-plaster texture as the portal's sign-in panel */
.l-plate::before, .l-plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.l-plate::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .8 0 0 0 0 .66 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 1000px 1000px; opacity: .55;
}
.l-plate::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22;
}
.l-plate img { position: relative; z-index: 1; width: min(340px, 78%); height: auto; }
.l-plate .mono-mark { top: 32px; left: 40px; }
.l-plate .cap {
  position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 32px;
  font-family: var(--serif); font-size: 20px; color: #f4e8d4; border-top: 1px solid rgba(244,232,212,.45); padding-top: 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.l-plate .cap span { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ecd9bf; }

/* Bands: heading in a narrow left column, content to its right */
.l-band {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px 48px;
  padding: 56px 48px; max-width: 1180px; border-top: 1px solid var(--hair);
}
.l-band:first-of-type { border-top: 0; }
.l-band h2 { font-size: 26px; line-height: 1.2; }
.l-prose { max-width: 40em; font-size: 16.5px; }
.l-prose p:last-child { margin-bottom: 0; }

.l-who td:first-child { width: 52%; color: var(--ink); }
.l-who strong { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--charcoal); display: block; }
.l-role { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* The three rules read like numbered clauses, not cards */
.l-rules { background: var(--plaster); max-width: none; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.l-rules > div { max-width: 892px; }
.l-rules ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.l-rules li { padding: 18px 24px 4px 0; }
.l-rules li + li { padding-left: 24px; border-left: 1px solid var(--hair); }
.l-rules .n { display: block; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--terracotta); margin-bottom: 12px; }
.l-rules h3 { font-size: 19px; margin-bottom: 6px; }
.l-rules li p { font-size: 14.5px; color: var(--ink); }
.l-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; max-width: 40em; }

/* Residents: the portal's charcoal, with the archway mark it signs in under */
.l-portal {
  background: var(--charcoal); color: #d9d0c3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end;
  padding: 64px 48px 60px calc(48px + 240px + 48px);
}
.l-portal .eyebrow { color: #c9a86f; }
.l-portal h2 { color: #f3ece0; font-size: 34px; margin-bottom: 12px; }
.l-portal p { max-width: 36em; margin-bottom: 24px; }
.l-portal-btn { background: #f3ece0; color: var(--charcoal); border-color: #f3ece0; }
.l-portal-btn:hover { background: #fff; color: var(--charcoal); }
.l-portal img { width: 96px; height: auto; opacity: .85; margin-right: 24px; }

.l-foot {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 22px 48px 40px; font-size: 12.5px; color: var(--muted); background: var(--charcoal); border-top: 1px solid #423b35;
}
.l-foot a { color: #c9b89c; }

@media (max-width: 960px) {
  .l-band { grid-template-columns: 1fr; }
  .l-portal { padding-left: 48px; }
}
@media (max-width: 820px) {
  .l-top { padding: 14px 16px; }
  .l-hero { grid-template-columns: 1fr; min-height: 0; }
  .l-hero-text { padding: 44px 16px 40px; }
  .l-lede { font-size: 19px; }
  .l-plate { min-height: 420px; padding: 80px 16px 96px; }
  .l-plate .mono-mark { left: 16px; top: 20px; }
  .l-plate .cap { left: 16px; right: 16px; bottom: 20px; }
  .l-plate img { width: min(260px, 72%); }
  .l-band { padding: 40px 16px; }
  .l-rules ol { grid-template-columns: 1fr; }
  .l-rules li, .l-rules li + li { padding: 16px 0 4px; border-left: 0; }
  .l-rules li + li { border-top: 1px solid var(--hair); }
  .l-who td:first-child { width: 46%; }
  .l-portal { grid-template-columns: 1fr; padding: 44px 16px; }
  .l-portal img { display: none; }
  .l-foot { padding: 20px 16px 32px; }
}
