/*
 * Golf Tactics launch site. The tokens, type roles and parts come from the game's own design
 * system (src/app/globals.css and src/app/sheet.css in the game repo), so the two read as one.
 */

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --paper: #f4efe3;
  --plate: #faf7ef;
  --ink: #1e2b24;
  --green: #1f4a38;
  --muted: #666c5d;
  --hair: rgba(30, 43, 36, 0.18);
  --brass: #b08a3e;
  --grade-good: #387a45;
  --grade-questionable: #936b12;
  --grade-costly: #a76028;
  --grade-mistake: #ad4f3d;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Inter Variable", Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 651px) {
  :root {
    --gutter: 40px;
  }
}

[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
::selection {
  background: #d1dac1;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--plate);
}
.skip:focus {
  top: 8px;
}

/* ---- Type roles: Caslon for names and prose; Inter for everything measured. */
.t-display {
  font: 400 44px/48px var(--serif);
  letter-spacing: -0.01em;
}
.t-title {
  font: 400 32px/38px var(--serif);
}
.t-heading {
  font: 400 24px/30px var(--serif);
}
.t-name {
  font: 400 18px/24px var(--serif);
}
.t-reading {
  font: 400 16px/25px var(--serif);
}
.t-figure {
  font: 500 16px/22px var(--sans);
  font-variant-numeric: tabular-nums;
}
.t-figure-large {
  font: 500 32px/36px var(--sans);
  font-variant-numeric: tabular-nums;
}
.t-body {
  font: 400 15px/22px var(--sans);
}
.t-small {
  font: 400 13px/18px var(--sans);
  color: var(--muted);
}
.t-label {
  font: 600 11px/14px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-label.ink {
  color: var(--ink);
}
.t-nav {
  font: 600 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 651px) {
  .t-display {
    font-size: 56px;
    line-height: 60px;
  }
}
@media (min-width: 1024px) {
  .t-display {
    font-size: 72px;
    line-height: 76px;
  }
  .t-title {
    font-size: 40px;
    line-height: 46px;
  }
  .t-reading {
    font-size: 17px;
    line-height: 27px;
  }
  .t-figure {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ---- Controls */
.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 2px;
  text-decoration: none;
}
.btn-primary {
  height: 56px;
  background: var(--green);
  color: var(--plate);
  font: 600 16px/20px var(--sans);
}
.btn-primary:hover {
  background: #183c2d;
}
.btn-primary:focus-visible {
  outline-offset: 3px;
}
.btn-secondary {
  height: 52px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 600 15px/20px var(--sans);
}
.btn-secondary:hover {
  background: rgba(30, 43, 36, 0.05);
}
@media (min-width: 1024px) {
  .btn-primary {
    height: 52px;
  }
}
.link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover {
  color: var(--ink);
}

/* ---- The ruled grid: the scorecard's row. Ink above and below, hairlines between. */
.ruled {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ruled > * {
  min-width: 0;
  padding: 8px 0 9px 12px;
  border-left: 1px solid var(--hair);
}
.ruled > :first-child {
  padding-left: 0;
  border-left: 0;
}
.ruled .t-label {
  display: block;
}
.ruled .t-figure,
.ruled .t-figure-large,
.ruled .t-body {
  display: block;
  margin-top: 2px;
}

/* The crest's heavy-and-fine rule: once a page at most. */
.heavy-fine {
  height: 6px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ---- The masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
.masthead-inner {
  max-width: 1360px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.masthead-mark {
  width: 32px;
}
.wordmark {
  font: 400 14px/1 var(--serif);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.places {
  display: none;
}
.places a {
  display: flex;
  align-items: center;
  height: 64px;
  color: var(--muted);
  text-decoration: none;
}
.places a:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.masthead-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
@media (min-width: 651px) {
  .masthead-inner {
    height: 64px;
  }
  .masthead-mark {
    width: 38px;
  }
  .wordmark {
    font-size: 16px;
  }
}
@media (min-width: 900px) {
  .places {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .masthead-contact {
    display: none;
  }
}

/* ---- Page frame */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 56px 0;
  border-top: 1px solid var(--hair);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

/* ---- The opening: the day's hole, the way the game opens it. */
.opening {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0 56px;
}
.opening-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.opening-copy h1 {
  margin-top: -2px;
}
.opening .ruled {
  margin-top: 4px;
}
.opening-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.opening-actions .t-small {
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .opening {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 480px);
    justify-content: space-between;
    align-items: start;
    gap: 48px;
    padding: 40px 0 96px;
  }
  .opening-copy {
    order: 2;
    padding-top: 2px;
  }
  .opening-copy .t-display {
    font-size: clamp(52px, 5.2vw, 64px);
    line-height: 1.07;
  }
  .opening .plate {
    order: 1;
  }
}

/* ---- The plate: the one drawing of a hole, with its bar of views. */
.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--plate);
}
.plate-view {
  position: relative;
  aspect-ratio: 800 / 846;
  overflow: hidden;
  background: #e9e8d4;
}
.plate-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.plate-view img[aria-hidden="true"] {
  opacity: 0;
}
.plate-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid var(--ink);
  background: var(--plate);
}
.plate-bar .views {
  display: flex;
  gap: 20px;
}
.plate-bar .views button {
  height: 44px;
  min-width: 44px;
  color: var(--muted);
  text-transform: inherit;
  letter-spacing: inherit;
}
.plate-bar .views button[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.plate-bar .views button:hover {
  color: var(--ink);
}
.plate-caption {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 12px;
}
@media (max-width: 370px) {
  .plate-bar .views {
    gap: 10px;
  }
  .plate-caption {
    display: none;
  }
}

/* ---- The game on a computer and a phone. */
.screens {
  position: relative;
  padding-bottom: 24px;
}
.screen-desk {
  border: 1px solid var(--ink);
  background: var(--plate);
  width: 100%;
}
.screen-desk-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ink);
}
.screen-desk-bar i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.screen-desk-bar span {
  margin: 0 auto;
  padding-right: 34px;
  font: 500 11px/1 var(--sans);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.screen-phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 24%;
  max-width: 230px;
  min-width: 96px;
  padding: 6px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--plate);
  box-shadow: 0 18px 40px rgba(30, 43, 36, 0.16);
}
.screen-phone img {
  border-radius: 16px;
  border: 1px solid var(--hair);
}
.facts {
  margin-top: 28px;
}
@media (max-width: 650px) {
  .screen-desk-bar span {
    display: none;
  }
  .screen-phone {
    border-radius: 14px;
    padding: 4px;
  }
  .screen-phone img {
    border-radius: 10px;
  }
  .facts {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }
  .facts > :nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts > :nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
}

/* ---- How it plays: the tee's three steps, then the bag. */
.steps {
  display: grid;
  border-top: 1px solid var(--ink);
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--hair);
}
.steps .t-figure {
  color: var(--muted);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--hair);
  }
  .steps li {
    padding: 14px 24px 22px;
    border-bottom: 0;
    border-left: 1px solid var(--hair);
  }
  .steps li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
.bag {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
.bag-clubs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #c9c8b8;
  border-left: 1px solid #c9c8b8;
}
.bag-clubs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-right: 1px solid #c9c8b8;
  border-bottom: 1px solid #c9c8b8;
  font: 600 14px/18px var(--sans);
  font-variant-numeric: tabular-nums;
}
.bag-clubs li span {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.bag-clubs li:first-child {
  background: var(--ink);
  color: var(--plate);
}
.bag-clubs li:first-child span {
  color: #c9cfc3;
}
@media (min-width: 1024px) {
  .bag {
    grid-template-columns: minmax(0, 420px) minmax(0, 640px);
    justify-content: space-between;
    align-items: end;
    gap: 64px;
  }
  .bag-clubs li {
    height: 60px;
    font-size: 16px;
  }
}

/* ---- Every decision rated: the grades, in their colors. */
.split {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 420px) minmax(0, 640px);
    justify-content: space-between;
    gap: 64px;
  }
  .split > .section-head {
    margin-bottom: 0;
  }
}
.grades {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.grades li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.grades li:first-child {
  border-top: 0;
}
.grades .t-small {
  grid-column: 2;
}
.grade-word {
  font: 600 15px/22px var(--sans);
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grade-good);
  color: var(--plate);
  font: 600 11px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
.mark.questionable {
  background: var(--grade-questionable);
}
.mark.costly {
  background: var(--grade-costly);
}
.mark.mistake {
  background: var(--grade-mistake);
}
.g-good {
  color: var(--grade-good);
}
.g-questionable {
  color: var(--grade-questionable);
}
.g-costly {
  color: var(--grade-costly);
}
.g-mistake {
  color: var(--grade-mistake);
}
.sg {
  margin-top: 20px;
}

/* ---- A hole beside the library's words. */
.hole-figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.hole-figure .plate img {
  width: 100%;
  aspect-ratio: 800 / 846;
  object-fit: cover;
}
.hole-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---- The club: the four places, as the menu lists them. */
.places-list {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.places-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0 15px;
  border-top: 1px solid var(--hair);
}
.places-list li:first-child {
  border-top: 0;
}
.places-list .t-name {
  font-size: 22px;
  line-height: 26px;
}
@media (min-width: 900px) {
  .places-list li {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
  }
}

/* ---- Patron: what it adds, and the two prices. */
.patron-prices {
  margin-top: 4px;
}
.patron-prices .t-figure-large {
  display: block;
  margin-top: 4px;
}
.benefits {
  border-top: 1px solid var(--ink);
}
.benefits li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.benefits .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 600 12px/1 var(--sans);
}
.benefits .t-small {
  grid-column: 2;
}
.benefit {
  font: 600 15px/22px var(--sans);
}
.later {
  display: inline-block;
  margin-left: 8px;
  padding: 0 5px;
  border: 1px solid var(--hair);
  font: 600 10px/16px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 2px;
}
.patron-free {
  margin-top: 16px;
}

/* ---- Write to us */
.letters {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.letters li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.letters li:first-child {
  border-top: 0;
}
@media (min-width: 900px) {
  .letters li {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}
.contact-mail {
  font: 400 24px/30px var(--serif);
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.contact-mail:hover {
  color: var(--ink);
}

/* ---- The foot: the crest, the tagline once, and the quiet links. */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.foot-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 0 40px;
  text-align: center;
}
.foot-crest img {
  width: 120px;
  height: 120px;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 0 28px;
  border-top: 1px solid var(--hair);
}
.colophon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  font: 400 13px/18px var(--sans);
  color: var(--muted);
}
.colophon-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.colophon-links a:hover {
  color: var(--ink);
}
@media (max-width: 650px) {
  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- A page outside the game: the privacy notice, the terms, a lost address. */
.outside-main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.outside-main h1 {
  margin-top: 8px;
}
.doc-lede {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  box-shadow:
    0 4px 0 -3px var(--paper),
    0 4px 0 -2px var(--ink);
  margin-bottom: 8px;
}
.doc h2 {
  margin: 28px 0 4px;
}
.doc p:not([class]),
.doc ul {
  font: 400 15px/24px var(--sans);
}
.doc ul {
  list-style: none;
  border-top: 1px solid var(--hair);
}
.doc ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}
.doc p:not([class]) + p:not([class]),
.doc p + ul,
.doc ul + p:not([class]) {
  margin-top: 10px;
}
.doc strong {
  font-weight: 600;
}
.doc .t-small {
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .outside-main {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .plate-view img {
    transition: none;
  }
}

/* On the pages outside, Contact stands alone in the masthead at every width. */
.masthead-contact.always {
  display: inline-flex;
}
.bag-note {
  margin-top: 8px;
}

/* Before launch: an ink tag in the masthead, like the plate's own tag, says the game isn't open yet. */
.opens {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  background: var(--plate);
  color: var(--ink);
  font: 600 11px/14px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.opens svg {
  width: 10px;
  height: 12px;
  color: var(--green);
}
@media (min-width: 900px) {
  .places + .opens {
    margin-left: 32px;
  }
}
/* On a phone the tag takes Contact's place, and under 390 the mark stands alone (the brand's own rule). */
@media (max-width: 520px) {
  .masthead-contact,
  .masthead-contact.always {
    display: none;
  }
}
@media (max-width: 389px) {
  .wordmark {
    display: none;
  }
}
.patron-when {
  margin-top: 4px;
  font-weight: 600;
}
@media (max-width: 360px) {
  .t-display {
    font-size: 36px;
    line-height: 40px;
  }
}

/* The countdown to the first hole: the scorecard's ruled row, in large figures. */
.countdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
@media (max-width: 360px) {
  .countdown .ruled .t-label {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}
