/* Kinsale Golf Club. Traditional club look: course photography, the crest, Caslon headings, deep parkland green. */
@font-face { font-family: 'Libre Caslon Display'; src: url(/fonts/libre-caslon-display.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(/fonts/lato-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Lato; src: url(/fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(/fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --forest: #16352a;
  --fairway: #2c5a43;
  --ink: #1f2c26;
  --muted: #55645c;
  --sage: #f1f4ef;
  --line: #d5dcd3;
  --brass: #b4943f;
  --brass-pale: #e3cf92;
  --tee-blue: #2e3180;
  --tee-yellow: #f2d21e;
  --tee-red: #cf1f33;
  --tee: var(--tee-blue);
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 66ch;
  --display: 'Libre Caslon Display', 'Times New Roman', serif;
  --body: Lato, 'Helvetica Neue', Arial, sans-serif;
}
html[data-tee='white'] { --tee: #fff; }
html[data-tee='yellow'] { --tee: var(--tee-yellow); }
html[data-tee='red'] { --tee: var(--tee-red); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.7 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fairway); text-underline-offset: .18em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; margin: 0; color: var(--forest); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
h2 + p, h2 + ul { margin-top: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; }

.btn { display: inline-block; font: 700 .8rem/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border: 1px solid var(--forest); color: var(--forest); background: transparent; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--forest); color: #fff; }
.btn-solid { background: var(--forest); color: #fff; }
.btn-solid:hover { background: var(--fairway); border-color: var(--fairway); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #14241c; }
.btn-brass:hover { background: var(--brass-pale); border-color: var(--brass-pale); color: #14241c; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.centre .btn-row { justify-content: center; }

/* Header: crest in the middle, menu either side, over the photograph. */
.site-head { background: var(--forest); color: #fff; }
.site-head a { color: #fff; text-decoration: none; }
.util { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding: 8px var(--gutter); font: 700 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.util a:hover { color: var(--brass-pale); }
.util .util-book { background: var(--brass); color: #14241c; padding: 9px 15px; }
.util .util-book:hover { background: var(--brass-pale); color: #14241c; }
.head-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; padding: 0 var(--gutter) 14px; }
.nav-side { display: flex; flex-wrap: wrap; gap: 4px 26px; font: 700 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.nav-left { justify-content: flex-end; }
.nav-side a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-side a:hover, .nav-side a[aria-current] { border-bottom-color: var(--brass-pale); color: #fff; }
.crest { display: flex; flex-direction: column; align-items: center; text-align: center; }
.crest img { width: 84px; height: 84px; object-fit: contain; }
.crest span { font: 400 1.25rem/1.15 var(--display); margin-top: 6px; }
.crest small { font: 400 .68rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; opacity: .9; }
@media (min-width: 1000px) {
  .has-hero .site-head { position: absolute; inset: 0 0 auto; z-index: 5; background: transparent; }
  .has-hero .site-head a, .has-hero .crest { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
  .has-hero .util .util-book { text-shadow: none; }
}
@media (max-width: 999px) {
  .head-main { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding-bottom: 12px; }
  .crest { order: -1; }
  .nav-side, .nav-left { justify-content: center; gap: 0 18px; }
  .util { justify-content: center; padding-inline: 8px; }
}

/* Hero: a photograph, darkened only as far as the words need. */
.hero { position: relative; display: flex; align-items: flex-end; background: var(--forest); color: #fff; min-height: clamp(380px, 86vh, 900px); overflow: hidden; }
.hero-short { min-height: clamp(280px, 56vh, 560px); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12, 28, 21, .62) 0, rgba(12, 28, 21, .12) 34%, rgba(12, 28, 21, .08) 52%, rgba(12, 28, 21, .72) 100%); }
.hero-text { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin-inline: auto; padding: 40px var(--gutter) clamp(36px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.hero p { margin: 12px 0 0; font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero .kicker { font: 700 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }

/* Sections */
.band { padding: clamp(56px, 7.5vw, 110px) var(--gutter); }
.band-sage { background: var(--sage); }
.band-forest { background: var(--forest); color: #fff; }
.band-forest h2, .band-forest h3 { color: #fff; }
.band-forest a:not(.btn) { color: #fff; }
.wrap { max-width: 1240px; margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.centre { text-align: center; }
.centre p { margin-inline: auto; }
.rule { width: 64px; height: 1px; background: var(--brass); border: 0; margin: 26px auto; }
.lede { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.34 var(--display); color: var(--forest); max-width: 32em; }
.band-forest .lede { color: #fff; }
.crest-mark { width: 92px; height: 92px; object-fit: contain; margin: 0 auto 22px; }

/* Staggered pair of photographs with text, in the manner of a club brochure. */
.stagger { display: grid; gap: 32px clamp(32px, 6vw, 90px); align-items: center; }
.stagger img { width: 100%; object-fit: cover; }
.stagger .tall { aspect-ratio: 4 / 5; }
@media (min-width: 880px) { .stagger { grid-template-columns: 1fr 1fr; } }
.stagger-side > * + img { margin-top: 44px; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { width: 100%; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-flip > :first-child { order: 2; }
  .split-top { align-items: start; }
}

/* Full-width photograph with centred words. */
.photo-band { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(380px, 60vh, 620px); padding: 60px var(--gutter); color: #fff; overflow: hidden; background: var(--forest); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: rgba(12, 28, 21, .46); }
.photo-band > div { position: relative; z-index: 2; max-width: 680px; }
.photo-band h2 { color: #fff; }
.photo-band p { margin-inline: auto; font-size: 1.12rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Explore tiles */
.tiles { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; background: var(--fairway); }
@media (max-width: 759px) { .tile { aspect-ratio: 4 / 3; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(10, 24, 18, .82)); }
.tile div { position: relative; z-index: 2; padding: 24px; }
.tile b { display: block; font: 400 1.9rem/1.1 var(--display); }
.tile span { display: block; margin-top: 6px; font: 400 .9rem/1.3 var(--body); }

.plain-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.plain-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.facts { display: grid; gap: 36px 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.facts h3 { margin-bottom: 10px; }

/* Booking pages: the booking system sits in a frame. */
.book-head { padding: clamp(32px, 4vw, 52px) var(--gutter) 22px; text-align: center; }
.book-head p { margin-inline: auto; margin-top: 12px; }
.demo-note { max-width: 780px; margin: 18px auto 0; padding: 14px 18px; background: var(--sage); border-left: 3px solid var(--brass); text-align: left; font-size: 1rem; }
.book-frame { display: block; width: 100%; height: max(760px, 88vh); border: 0; border-top: 1px solid var(--line); background: #fff; }
.book-foot { padding: 18px var(--gutter) 40px; text-align: center; font-size: 1rem; }

/* Tee choice on the course page */
.tee-switch { display: none; border: 0; margin: 0; padding: 0; }
.js .tee-switch { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.tee-switch legend { float: left; font-weight: 700; margin-right: 18px; padding: 0; }
.tee-switch label { cursor: pointer; }
.tee-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tee-switch span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 2px solid transparent; }
.tee-switch span::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--ink); background: var(--swatch); }
.tee-switch input:checked + span { font-weight: 700; border-bottom-color: var(--forest); }
.tee-switch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.t-blue { --swatch: var(--tee-blue); } .t-white { --swatch: #fff; } .t-yellow { --swatch: var(--tee-yellow); } .t-red { --swatch: var(--tee-red); }

.tee-sums { display: flex; flex-wrap: wrap; gap: 8px 44px; margin: 24px 0 0; }
.tee-sums div { display: flex; flex-direction: column-reverse; }
.tee-sums dd { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--display); color: var(--forest); }
.tee-sums dt { font-size: .95rem; color: var(--muted); }

.card { width: 100%; max-width: 940px; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; background: #fff; margin-top: 28px; }
.card th, .card td { border: 1px solid var(--line); padding: 8px 4px; text-align: center; line-height: 1.25; }
.card tbody th { font-weight: 700; }
.card thead th { font-weight: 700; font-size: .9rem; background: var(--forest); color: #fff; border-color: var(--forest); }
.card thead .c-blue { background: var(--tee-blue); border-color: var(--tee-blue); }
.card thead .c-white { background: #fff; color: var(--ink); border-color: var(--line); }
.card thead .c-yellow { background: var(--tee-yellow); color: var(--ink); border-color: var(--tee-yellow); }
.card thead .c-red { background: var(--tee-red); border-color: var(--tee-red); }
.card .total th, .card .total td { background: var(--sage); font-weight: 700; }
.card a { color: inherit; }
html[data-tee='blue'] .card tbody .c-blue, html[data-tee='white'] .card tbody .c-white, html[data-tee='yellow'] .card tbody .c-yellow, html[data-tee='red'] .card tbody .c-red { background: #e3ebe0; font-weight: 700; }
.card-note { font-size: .95rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 600px) { .card { font-size: .88rem; } .card th, .card td { padding: 7px 1px; } .card thead th { font-size: .72rem; } }

.hole-picker { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter); }
.hole-picker .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.hole-picker legend { display: none; }
.hole-jump { display: flex; flex-wrap: wrap; font-size: .92rem; }
.hole-jump a { padding: 6px 7px; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.hole-jump a:hover { background: var(--forest); color: #fff; }
@media (max-width: 860px) { .hole-jump { display: none; } }

.hole { padding: clamp(38px, 5vw, 64px) var(--gutter); border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.hole:nth-of-type(even) { background: var(--sage); }
.hole-in { max-width: 1240px; margin-inline: auto; display: grid; gap: 22px clamp(28px, 5vw, 72px); align-items: start; }
@media (min-width: 880px) { .hole-in { grid-template-columns: 1fr 1fr; } .hole-solo { grid-template-columns: minmax(0, 820px); } }
.hole h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.hole-meta { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.hole-meta div { display: flex; gap: 6px; }
.hole-meta dt { color: var(--muted); }
.hole-meta dd { margin: 0; font-weight: 700; }
.hole-meta .yds { align-items: center; }
.hole-meta .yds::before { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ink); background: var(--tee); margin-right: 2px; }
.hole figure { margin: 0; }
.hole figure img { width: 100%; }
.hole figure.portrait img { max-height: 560px; object-fit: cover; }

/* History: years are a true sequence */
.timeline { list-style: none; margin: 34px 0 0; padding: 0; max-width: 780px; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline b { font: 400 1.65rem/1.2 var(--display); color: var(--fairway); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 70px 1fr; gap: 12px; } .timeline b { font-size: 1.3rem; } }

.committees, .docs { display: grid; gap: 36px clamp(28px, 4vw, 56px); margin-top: 32px; }
@media (min-width: 900px) { .committees, .docs { grid-template-columns: repeat(3, 1fr); } }
.committees dl { margin: 12px 0 0; }
.committees dt { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.committees dd { margin: 0; font-weight: 700; }
.docs ul { margin-top: 12px; }

.contact-list h3 { margin-bottom: 2px; font-size: 1.3rem; }
.contact-list p { margin-bottom: 20px; }

/* Footer */
.site-foot { background: var(--forest); color: #fff; padding: clamp(44px, 5vw, 76px) var(--gutter) 28px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--brass-pale); }
.foot-grid { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; }
.foot-crest img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 8px; }
.foot-crest b { font: 400 1.35rem/1.2 var(--display); display: block; }
.foot-grid h2 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.foot-grid p { font-size: 1rem; }
.foot-note { margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: .9rem; max-width: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .util, .nav-side, .hole-picker { display: none; } }
