/* Pin & Contour. The colours and the two typefaces are those of the prints themselves (golfmap.STYLES). */

@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f1e6;      /* the light print's paper */
  --paper-2: #ece6d6;
  --plaster: #e3dbc9;    /* a wall behind a print */
  --ink: #26302a;
  --ink-2: #5a6457;
  --rule: #cfc7b2;
  --red: #b5452f;        /* the flag */
  --night: #10231c;      /* the dark print's paper */
  --night-2: #173227;
  --cream: #efe7d2;
  --gold: #e0b354;
  --oak: #b8925f;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wide: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.25rem/1.5 var(--serif); font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); letter-spacing: -.012em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.008em; }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-weight: 500; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.4; max-width: 32em; }
.aside { font-size: 1.08rem; color: var(--ink-2); }

/* small capitals in the sans, as on the prints' second line */
.eyebrow, .ribbon, .masthead nav a, .crumbs, legend, .field > label, .group, .card-place, .card-of-facts b,
.colophon h2, .more, .scorecard th, .order button, .find label, .find button, .details dt, .pair b {
  font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .7em; margin: 0 0 1.6rem; color: var(--ink-2); }
.eyebrow i, .ribbon i, .crumbs i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; display: inline-block; }
.flag { width: .95rem; height: 1.1rem; color: var(--ink); flex: none; }
.more { display: inline-flex; align-items: center; gap: .8em; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: .45em; }
.more::after { content: "\2192"; font-size: 1.15em; letter-spacing: 0; transition: transform .2s; }
.more:hover::after { transform: translateX(.3em); }

.skip { position: absolute; left: -99rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .6rem 1rem; z-index: 9; }

/* ---------- top ---------- */
.ribbon { margin: 0; padding: .7rem var(--gutter); background: var(--night); color: var(--cream); display: flex; justify-content: center; align-items: center; gap: 1.1em; flex-wrap: wrap; font-weight: 500; font-size: .64rem; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.5rem var(--gutter) 1.3rem; border-bottom: 1px solid var(--rule); }
.wordmark { font: 600 1.45rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; margin: 0; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: 500; color: var(--red); letter-spacing: 0; padding: 0 .12em 0 0; text-transform: none; font-size: 1.15em; }
.wordmark:hover { color: var(--ink); }
.masthead nav { display: flex; gap: clamp(1.1rem, 2.6vw, 2.4rem); flex-wrap: wrap; }
.masthead nav a { text-decoration: none; font-weight: 500; padding: .3rem 0; }

/* ---------- a print as it hangs ---------- */
.print { display: block; background: #fff; box-shadow: 0 1px 1px rgba(30, 25, 10, .25), 0 22px 30px -22px rgba(30, 25, 10, .6); transition: border-width .25s, box-shadow .25s; }
.print.framed { border: clamp(7px, 1.1vw, 13px) solid #1c1c1a; box-shadow: inset 0 0 0 1px #000, 0 2px 2px rgba(20, 15, 5, .3), 0 30px 34px -24px rgba(20, 15, 5, .7); }
.shelf { display: flex; align-items: flex-end; justify-content: center; position: relative; padding: 0 6% ; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(#caa678, #a8804e 70%, #8d6a3e); box-shadow: 0 16px 22px -10px rgba(40, 28, 8, .55); border-radius: 1px; }

/* ---------- front page ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: min(46rem, 92vh); border-bottom: 1px solid var(--rule); }
.hero-words { padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); align-self: center; }
.hero-words h1 { max-width: 9.5em; margin-bottom: 1.6rem; }
.hero-wall { background: linear-gradient(155deg, #ebe4d4 0%, #ddd3bf 100%); display: flex; align-items: flex-end; justify-content: center; padding: 4rem 2rem 5.5rem; overflow: hidden; }
.hero-wall .shelf { width: min(100%, 43rem); }
.hero-wall .print { width: 52%; }
.hero-wall .print:first-child { width: 44%; margin-right: -9%; }
.hero-wall .print.framed { position: relative; z-index: 1; }

.find { margin: 2.2rem 0 1.1rem; max-width: 30rem; }
.find label { display: block; margin-bottom: .2rem; color: var(--ink-2); }
.find div { display: flex; align-items: flex-end; border-bottom: 1.5px solid var(--ink); }
.find input { flex: 1; min-width: 0; border: 0; background: none; font: italic 500 1.5rem/1.2 var(--serif); color: var(--ink); padding: .5rem 0 .45rem; border-radius: 0; }
.find input::placeholder { color: #8b9184; }
.find input:focus { outline: none; }
.find div:focus-within { border-bottom-color: var(--red); }
.find button { border: 0; background: none; color: var(--ink); padding: .9rem 0 .8rem 1rem; cursor: pointer; }
.find button:hover { color: var(--red); }

.card-of-facts { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); font-size: 1.12rem; }
.card-of-facts li { padding: 1.5rem 1.5rem 1.4rem 0; }
.card-of-facts li + li { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.card-of-facts b { display: block; color: var(--ink-2); margin-bottom: .45rem; }

.band { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.band-first { padding-top: 1rem; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.band-head h2::after, .steps h2::after, .details h2::after, .page-head h1::after, .prose h1::after { content: ""; display: block; width: 3.2rem; height: 2px; background: var(--red); margin-top: 1.1rem; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 2.6rem); }
.gallery-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; }
.card-wall { display: grid; place-items: center; aspect-ratio: 5 / 6; background: var(--plaster); transition: background .25s; }
.card-wall .print { width: 66%; }
.card-wall .print.wide { width: 84%; }
.card-wall.night { background: #c9c3b1; }
.card:hover .card-wall { background: #d9d0bb; }
.card .print { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card:hover .print { transform: translateY(-5px); }
.card-name { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.12; margin: 1rem 0 .35rem; }
.card-place { display: block; color: var(--ink-2); font-weight: 500; }
.gallery-small .card-name { font-size: 1.28rem; }

.steps { background: var(--paper-2); padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); border-block: 1px solid var(--rule); }
.steps h2, .steps ol { max-width: var(--wide); margin-inline: auto; }
.steps ol { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3.2rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.4rem; }
/* the numbered badge that marks each tee on the prints */
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); font: 600 .95rem/1 var(--sans); margin-bottom: 1.2rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { margin: 0; font-size: 1.15rem; }

.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair figure { margin: 0; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 2.6rem; }
.pair .print { width: min(100%, 21rem); }
.pair-day { background: linear-gradient(170deg, #ebe4d4, #dfd6c2); }
.pair-night { background: linear-gradient(170deg, #1d3a2e, var(--night)); color: var(--cream); }
.pair-night .print { box-shadow: 0 0 0 1px rgba(239, 231, 210, .18), 0 30px 34px -22px #000; }
.pair figcaption { max-width: 21rem; font-size: 1.15rem; }
.pair b { display: block; margin-bottom: .5rem; }
.pair-night b { color: var(--gold); }

.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.feature-first { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.feature-picture { background: var(--plaster); padding: 9% 17%; }
.feature-picture img { box-shadow: 0 1px 1px rgba(30, 25, 10, .25), 0 22px 30px -22px rgba(30, 25, 10, .6); }
.feature-words h1, .feature-words h2 { margin-bottom: 1.4rem; max-width: 11em; }
.feature-words h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.feature-words p { max-width: 30em; }
.plain-steps { padding-left: 1.2em; margin: 1.6rem 0; }
.plain-steps li { padding-left: .4em; margin-bottom: .4em; }
.plain-steps li::marker { font: 600 .8rem var(--sans); }

/* a gazetteer: names, a dotted lead, a number */
.index { list-style: none; margin: 0; padding: 0; columns: 4 13rem; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.index a { display: flex; align-items: baseline; gap: .5em; text-decoration: none; padding: .36rem 0; break-inside: avoid; }
.index i, .choose-size label i { flex: 1; border-bottom: 1px dotted #a39c88; transform: translateY(-.28em); }
.index span:last-child { font: 500 .8rem var(--sans); color: var(--ink-2); }

/* ---------- lists of courses ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.page-head h1 { margin-bottom: 1.6rem; }
.crumbs { display: flex; align-items: center; gap: .9em; flex-wrap: wrap; padding: 1.4rem var(--gutter) 0; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; color: var(--ink-2); font-weight: 500; }
.crumbs a { text-decoration: none; }
.gazetteer { padding: 1rem var(--gutter) clamp(3rem, 8vw, 6rem); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; columns: 3 17rem; column-gap: clamp(2rem, 5vw, 4.5rem); }
.gazetteer section { break-inside: avoid-column; margin-bottom: 2.4rem; }
.gazetteer h2 { font-size: 1.7rem; border-bottom: 1px solid var(--ink); padding-bottom: .5rem; margin-bottom: .5rem; }
.gazetteer h2 a { text-decoration: none; }
.gazetteer ul { list-style: none; margin: 0; padding: 0; }
.gazetteer li { padding: .22rem 0; font-size: 1.12rem; line-height: 1.3; break-inside: avoid; }
.gazetteer li a { text-decoration: none; }
.gazetteer li a:hover { text-decoration: underline; }
.gazetteer li span { color: var(--ink-2); font-style: italic; font-size: .95em; }
[hidden] { display: none !important; }

/* ---------- a course ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5.5rem); padding: 1.6rem var(--gutter) clamp(3rem, 7vw, 6rem); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; align-items: start; }
.product-wall { background: linear-gradient(160deg, #ebe4d4, #ddd3bf); padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3.2rem, 7vw, 5.5rem); position: sticky; top: 1.5rem; }
.product-wall.night { background: linear-gradient(160deg, #cfc8b6, #bdb5a1); }
.product-wall .print { width: 100%; }
.product-words h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.08; margin-bottom: 1.3rem; }
.product-words h1::after { content: ""; display: block; width: 3.2rem; height: 2px; background: var(--red); margin-top: 1.2rem; }
.product-words .lede { font-size: 1.2rem; line-height: 1.45; }

.order { margin-top: 2.2rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend, .field > label { padding: 0; margin-bottom: .8rem; color: var(--ink-2); display: block; }
.field > label small { font: italic 500 1rem var(--serif); letter-spacing: 0; text-transform: none; margin-left: .4em; }
input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.choose-style { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.choose-style legend { float: left; width: 100%; }
.choose-style label { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-size: 1.2rem; padding-bottom: .3rem; border-bottom: 1.5px solid transparent; }
.choose-style label:has(:checked) { border-bottom-color: var(--ink); }
.choose-style label:has(:focus-visible), .choose-size label:has(:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.swatch { width: 1.5rem; height: 2rem; border: 1px solid var(--ink); }
.swatch-light { background: var(--paper); }
.swatch-dark { background: var(--night); }

.group { margin: 1.1rem 0 .2rem; color: var(--ink); font-weight: 500; font-size: .62rem; opacity: .75; }
.group:first-of-type { margin-top: 0; }
.choose-size label { display: flex; align-items: baseline; gap: .6em; padding: .62rem .2rem .62rem 1.6rem; border-bottom: 1px solid var(--rule); cursor: pointer; position: relative; font-size: 1.25rem; }
.choose-size label b { font: 500 1rem var(--sans); }
.choose-size label::before { content: ""; position: absolute; left: .15rem; top: 50%; width: .62rem; height: .62rem; margin-top: -.31rem; border: 1.5px solid var(--ink); border-radius: 50%; }
.choose-size label:has(:checked)::before { background: var(--red); border-color: var(--red); }
.choose-size label:has(:checked) { font-weight: 700; }
.choose-size label:has(:checked) b { font-weight: 600; }
.choose-size label:hover { background: rgba(38, 48, 42, .04); }

.field { margin-bottom: 2rem; }
.field input[type="text"], .field select { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: none; font: italic 500 1.35rem/1.3 var(--serif); color: var(--ink); padding: .5rem 0; border-radius: 0; margin-bottom: .5rem; }
.field select { font-style: normal; cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2326302a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .2rem center / .75rem; padding-right: 1.6rem; }
.field input::placeholder { color: #979c8f; }
.field input:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--red); padding-bottom: calc(.5rem - 1px); }
.hint, .terms { font-size: 1rem; line-height: 1.4; color: var(--ink-2); margin: .6rem 0 0; }

.order button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: var(--ink); color: var(--paper); padding: 1.25rem 1.5rem; cursor: pointer; font-size: .78rem; transition: background .2s; }
.order button span { font-size: 1.05rem; letter-spacing: .05em; }
.order button:hover { background: var(--night); }
.terms { margin-top: 1rem; }

.details { border-top: 1px solid var(--rule); background: var(--paper-2); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.details h2, .details dl { max-width: var(--wide); margin-inline: auto; }
.details dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 0; }
.details dl div { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.details dt { color: var(--ink-2); margin-bottom: .6rem; }
.details dd { margin: 0; font-size: 1.12rem; line-height: 1.42; }

/* ---------- pages of words ---------- */
.prose { max-width: calc(40rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 8vw, 7rem); }
.prose h1 { margin-bottom: 2rem; }
.prose h2 { font-size: 1.9rem; margin: 2.6rem 0 .8rem; }
.prose .lede { margin-bottom: 1.5rem; }
.scorecard { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.4rem; font-size: 1.15rem; }
.scorecard th { text-align: left; color: var(--ink-2); padding: 0 0 .7rem; border-bottom: 1px solid var(--ink); }
.scorecard td { padding: .65rem 1rem .65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.scorecard td:last-child, .scorecard th:last-child { text-align: right; padding-right: 0; }
.scorecard td:last-child { font-family: var(--sans); font-size: .95rem; white-space: nowrap; }
.prose .scorecard td:only-child, .prose .scorecard td:nth-child(2):last-child { font-family: var(--serif); font-size: inherit; white-space: normal; }

/* ---------- foot ---------- */
.colophon { background: var(--night); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2rem; font-size: 1.08rem; }
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--gold); }
.colophon-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; max-width: var(--wide); margin: 0 auto; }
.colophon .wordmark { margin-bottom: 1rem; }
.colophon .wordmark span { color: var(--gold); }
.colophon h2 { color: var(--gold); margin-bottom: 1.1rem; }
.colophon nav a { display: block; padding: .2rem 0; }
.colophon-top p { max-width: 20em; }
.colophon-foot { max-width: var(--wide); margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(239, 231, 210, .22); font-size: .95rem; color: rgba(239, 231, 210, .75); }
.colophon-foot a { text-decoration: underline; text-decoration-color: rgba(239, 231, 210, .4); margin-left: .9em; }
.colophon-foot a:first-of-type { margin-left: 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 60rem) {
  .hero, .product, .feature { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-wall { order: -1; padding: 2.5rem 1.5rem 3.6rem; }
  .hero-wall .shelf { width: min(100%, 26rem); }
  .product-wall { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-of-facts, .details dl { grid-template-columns: 1fr 1fr; }
  .card-of-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .card-of-facts li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .steps ol { grid-template-columns: 1fr; }
  .colophon-top { grid-template-columns: 1fr 1fr; }
  .feature-picture { max-width: 30rem; }
}
@media (max-width: 38rem) {
  body { font-size: 1.16rem; }
  .ribbon { font-size: .56rem; gap: .8em; letter-spacing: .14em; }
  .masthead { padding-top: 1.2rem; }
  .masthead nav { gap: .2rem 1.1rem; width: 100%; justify-content: space-between; }
  .masthead nav a { font-size: .6rem; letter-spacing: .13em; }
  .wordmark { font-size: 1.25rem; }
  .pair { grid-template-columns: 1fr; }
  .gallery-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-name { font-size: 1.22rem; }
  .gallery-small .card-name { font-size: 1.12rem; }
  .card-place { font-size: .58rem; letter-spacing: .14em; }
  .details dl, .colophon-top { grid-template-columns: 1fr; }
  .find input { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
