/*
 * fairwaylog.app: "classic country club" (see the product spec, Design
 * direction). Colours and fonts match the app (mobile/src/constants/theme.ts).
 * Phone first: one text column, 24 px side margins, no JavaScript.
 */

/* Fonts: self-hosted Latin subsets from Fontsource 5.3.0 (licences in fonts/OFL.txt). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/libre-franklin-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/libre-franklin-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/libre-franklin-latin-600-normal.woff2') format('woff2');
}

:root {
  --ivory: #f7f3ea;            /* page background */
  --navy: #1b2433;             /* body text */
  --secondary: #5e6470;        /* captions, details */
  --green: #1f3d2b;            /* headings, links, buttons */
  --gold: #7a5c1e;             /* small uppercase labels */
  --gold-rule: #b39a5e;        /* rule lines */
  --hairline: #e4dccb;         /* between rows */
  --divider: #d8cfbd;          /* slightly stronger divider */
  --band: #efe8d8;             /* footer band */

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --column: 680px;
  --margin: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin) 56px;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--gold-rule);
  outline-offset: 3px;
  border-radius: 4px;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--gold-rule);
}

/* ---- Masthead on inner pages: the wordmark, linking home ---- */

.masthead {
  max-width: calc(var(--column) + 2 * var(--margin));
  margin: 0 auto;
  width: 100%;
  padding: 16px var(--margin) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
}

.masthead::after {
  content: '';
  display: block;
  margin-top: 8px;
  border-bottom: 1px solid var(--gold-rule);
}

/* ---- Headings ---- */

h1 {
  margin: 32px 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.1;
  color: var(--green);
}

/* Small uppercase letter-spaced section label, as in the app. */
h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h3 {
  margin: 24px 0 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 19px;
  color: var(--navy);
}

.meta {
  color: var(--secondary);
  font-size: 15px;
}

/* ---- Home ---- */

.home {
  text-align: center;
  padding-top: 48px;
}

.home h1 {
  margin: 0 auto;
  width: 240px;
  max-width: 70%;
  line-height: 0;
}

.home h1 img {
  display: block;
  width: 100%;
}

.home .rule {
  width: 64px;
  margin: 32px auto;
  border: 0;
  border-top: 1px solid var(--gold-rule);
}

.tagline {
  max-width: 420px;
  margin: 0 auto 32px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  color: var(--navy);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Secondary button, as in the app: green outline, square-ish corners. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 140px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--green);
}

.button:hover {
  background: var(--band);
}

/* ---- Support ---- */

.email-block {
  margin: 24px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--gold-rule);
  border-bottom: 1px solid var(--gold-rule);
}

.email-block .label {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

/* One tap selects the whole address, ready to copy. */
.copy-text {
  -webkit-user-select: all;
  user-select: all;
  font-weight: 500;
}

/* ---- Privacy: the summary box at the top ---- */

.summary {
  margin: 24px 0 8px;
  padding: 4px 20px 8px;
  background: var(--band);
  border-top: 1px solid var(--gold-rule);
  border-bottom: 1px solid var(--gold-rule);
}

.summary h2 {
  margin-top: 16px;
  border-bottom-color: var(--divider);
}

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

.site-footer {
  background: var(--band);
  border-top: 1px solid var(--divider);
}

.site-footer .inner {
  max-width: calc(var(--column) + 2 * var(--margin));
  margin: 0 auto;
  padding: 16px var(--margin) 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 15px;
}

.site-footer a[aria-current='page'] {
  text-decoration: none;
  color: var(--navy);
}

.copyright {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--secondary);
}
