/* Generated for golfwithnico.com — layout is shared, tokens (--primary etc.) are set per site in base.html */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
/* the accent alone can fall under the 3:1 minimum on a pale palette; the hairline guarantees the ring */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 1px var(--ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: var(--heading-weight, 700); }
h1 { font-size: calc(clamp(2.2rem, 1.2rem + 4vw, 3.6rem) * var(--scale, 1)); letter-spacing: -0.01em; }
h2 { font-size: calc(clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem) * var(--scale, 1)); }
h3 { font-size: calc(1.2rem * var(--scale, 1)); }
p { margin: 0 0 1em; max-width: var(--measure, 68ch); }
address { font-style: normal; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.section { padding-block: var(--rhythm, 3rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.masthead nav a { color: var(--ink); text-decoration: none; padding-block: .25rem; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--primary); }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.masthead-contact { text-decoration: none; }
@media (max-width: 640px) {
  .masthead nav { width: 100%; margin-inline-start: 0; gap: 1rem; }
  .masthead-contact { display: none; }
}

/* hero: the one loud element, and the part of the layout that changes shape from site to site.
   theme.hero picks band | quiet | stack | split; the bundles in templates/styles.yaml each choose one. */
.hero { background: var(--primary); color: var(--paper); padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 18ch; color: inherit; }
.hero .lede { font-size: calc(1.25rem * var(--scale, 1)); opacity: .92; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.hero .link-quiet { color: inherit; }
.hero-grid { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 60em) { .hero-with-aside .hero-grid { grid-template-columns: 3fr 2fr; } }

/* band: the original, a solid block of the primary colour with the text on the left */
.hero-band { background: var(--primary); color: var(--paper); }

/* quiet: no colour block at all. The type carries it and a rule closes it. */
.hero-quiet { background: var(--paper); color: var(--ink); border-bottom: var(--rule-w, 1px) solid var(--rule);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-quiet h1 { max-width: 15ch; }
.hero-quiet .lede { opacity: 1; color: var(--muted); }
.hero-quiet .link-quiet { color: var(--primary); }

/* stack: centred and tall, one line held on a short measure, with the ground it covers above it */
.hero-stack { padding-block: clamp(4rem, 11vw, 8rem); text-align: center; }
.hero-stack .hero-grid { grid-template-columns: 1fr; }
.hero-stack h1 { max-width: 19ch; margin-inline: auto; }
.hero-stack .lede { margin-inline: auto; }
.hero-stack .actions { justify-content: center; }
.hero-over { margin: 0 auto 1.25rem; padding-bottom: .75rem; max-width: 30ch; opacity: .85;
  border-bottom: var(--rule-w, 1px) solid currentColor; }

/* split: a panel of text beside a darker one holding what a visitor rings to ask */
.hero-split { padding-block: 0; }
.hero-split .hero-grid { gap: 0; align-items: stretch; }
.hero-split .hero-text { padding-block: clamp(3rem, 8vw, 6rem); }
@media (min-width: 60em) {
  .hero-split .hero-grid { grid-template-columns: 3fr 2fr; }
  .hero-split .hero-text { padding-inline-end: 3rem; }
}
.hero-facts { display: grid; align-content: center; padding: clamp(2rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--ink) 55%, var(--primary)); }
.hero-facts dl { margin: 0; display: grid; gap: 1.1rem; }
.hero-facts dt { font-size: .9rem; opacity: .7; }
.hero-facts dd { margin: 0; font-size: 1.05rem; }
.hero-facts a { color: inherit; }
.hero-facts address { font-style: normal; }
@media (max-width: 60em) { .hero-facts { margin-inline: calc(50% - 50vw); padding-inline: max(1.25rem, calc(50vw - 50% + 1.25rem)); } }
.hero .portrait { margin: 0; width: min(100%, 22rem); }
.hero .portrait img { width: 100%; max-height: 27rem; object-fit: cover; object-position: 50% 28%; border-radius: var(--radius); display: block; }
.hero .portrait figcaption { margin-top: .6rem; font-size: .95rem; opacity: .85; }
.button {
  display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius);
  background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); color: var(--ink); }
.button.inverse { background: var(--primary); color: var(--paper); }
.button.inverse:hover { color: var(--paper); }

/* page heads */
.page-head { padding-block: 3rem 1rem; }
.lede { font-size: calc(1.2rem * var(--scale, 1)); }

/* highlight grid: rule on top, no cards */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.highlights li { border-top: var(--rule-w, 3px) solid var(--accent); padding-top: 1rem; }
.highlights h2, .highlights h3 { font-size: 1.25rem; }

/* services as a definition list */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.service-list { margin: 0; border-top: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.service-row dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.service-row dd { margin: 0; }
.service-row dd p:last-child { margin-bottom: 0; }
.compact .service-row { padding-block: 1rem; }
.price { color: var(--muted); }
@media (max-width: 640px) { .service-row { grid-template-columns: 1fr; gap: .25rem; } }

/* about */
.prose p { font-size: 1.1rem; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.team img { width: 10rem; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); margin-bottom: .75rem; }
.team-name { display: block; font-weight: 600; }
.proof { margin: 0; padding-inline-start: 1.5rem; border-inline-start: 4px solid var(--accent); font-size: 1.3rem; font-family: var(--font-display); }
.proof footer { font-family: var(--font-body); font-size: 1rem; color: var(--muted); }

/* faq: native <details>, which works with no JavaScript at all. An enhanced site animates the height as one
   opens (assets/enhance.js) without touching the markup, so a closed answer stays findable with Ctrl+F. */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding-block: 1rem; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 400; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1rem; }


/* contact band */
.contact-band { margin-block: 3rem 0; padding-block: 3rem; background: color-mix(in srgb, var(--primary) 8%, var(--paper)); }
.contact-band h2 { margin-bottom: .25em; }

/* theme.bands: alternate sections sit on a faint tint, so the page reads as a stack of bands rather than
   one continuous sheet. The contact band and the hero set their own background and are left alone. */
.bands main > section:nth-of-type(even):not(.contact-band):not([class*="hero"]) {
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
}
.bands main > section:nth-of-type(even) { padding-block: var(--rhythm, 3rem); }

/* theme.align_headings: center — hero text and page heads centred (the portfolio layout's default, opt-in here) */
.headings-center .hero-text, .headings-center .page-head { text-align: center; }
.headings-center .hero-text h1, .headings-center .hero-text .lede, .headings-center .page-head .lede { margin-inline: auto; }
.headings-center .hero-text .actions { justify-content: center; }
.headings-center .hero-with-aside .hero-text { text-align: start; }
.headings-center .hero-with-aside .hero-text h1, .headings-center .hero-with-aside .hero-text .lede { margin-inline: 0; }
.headings-center .hero-with-aside .hero-text .actions { justify-content: flex-start; }

/* footer */
.footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer p { margin-bottom: .35em; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.fineprint { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
