/* About, Services and Contact: the homepage's world, with their own layouts. */

.hithub-page { background: var(--chalk); color: var(--ink); overflow-x: clip; }
.hithub-page .site-content, .hithub-page .ast-container { display: block; max-width: none; width: auto; padding: 0; margin: 0; background: transparent; }
.hithub-page #page { background: transparent; }
.hithub-page .site-content *, .hithub-page .site-content *::before { box-sizing: border-box; }
.hithub-page .site-content h1, .hithub-page .site-content h2, .hithub-page .site-content h3 { color: inherit; font-weight: 600; margin: 0; }
.hithub-page .site-content p { margin: 0; }
.hithub-page .site-content { font: 400 1.0625rem/1.6 var(--font-body); }

/* Hero: mown field, chalk ground on the right. */
.page-hero {
	position: relative; overflow: hidden;
	min-height: calc(82svh - var(--bar-h));
	padding: clamp(48px, 9vh, 96px) var(--gutter);
	display: grid; align-items: center; gap: 32px;
}
.page-hero--short { min-height: 0; padding-block: clamp(56px, 11vh, 112px); }
.page-hero__copy { position: relative; z-index: 1; display: grid; gap: clamp(16px, 3vh, 28px); justify-items: start; }
.hithub-page .site-content .page-hero__title { font: 600 clamp(2.75rem, min(9vw, 13vh), 6.5rem)/1.02 var(--font-display); max-width: 14ch; text-wrap: balance; }
.hithub-page .site-content .page-hero--short .page-hero__title { max-width: 18ch; }
.page-hero__lede { max-width: 42ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; text-wrap: pretty; }
.page-hero__ground { width: min(72vw, 300px); justify-self: end; fill: none; stroke: #fff; stroke-width: 2; opacity: .85; overflow: visible; }
@media (min-width: 900px) {
	.hithub-page .site-content .page-hero__title { font-size: clamp(2.75rem, min(6.5vw, 13vh), 6.5rem); }
	.page-hero:not(.page-hero--short) { grid-template-columns: 1.4fr 1fr; }
	.page-hero__ground { width: min(100%, 460px); }
}

/* Facts: a bento of painted tiles. */
.facts, .steps, .extras, .message { padding: clamp(72px, 12vh, 128px) var(--gutter); }
.facts__grid { display: grid; margin-top: clamp(32px, 6vh, 56px); }
.fact { padding: clamp(24px, 3vw, 40px); min-height: 220px; display: grid; align-content: end; gap: 8px; }
.fact p { max-width: 38ch; font-weight: 500; text-wrap: pretty; }
.hithub-page .site-content .fact__title { font: 600 clamp(1.75rem, 3.4vw, 2.75rem)/1.05 var(--font-display); }
.hithub-page .site-content .fact__big { font: 600 clamp(4rem, 9vw, 7.5rem)/1 var(--font-display); font-stretch: 112%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.fact--grass { background: var(--grass); color: #fff; }
.fact--sign { background: var(--sign); color: var(--ink); }
.fact--blue { background: var(--blue); color: #fff; }
.fact--white { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.fact--white .fact__big { color: var(--grass); }
@media (min-width: 768px) {
	.facts__grid { grid-template-columns: repeat(5, 1fr); }
	.fact { grid-column: span 2; min-height: 280px; }
	.fact--wide { grid-column: span 3; }
}

.page-line { padding: clamp(96px, 20vh, 200px) var(--gutter); }

/* How booking works: the order matters, so the numbers stay. */
.steps__list { list-style: none; counter-reset: step; margin: clamp(32px, 6vh, 56px) 0 0; padding: 0; display: grid; gap: 32px; }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; }
.step::before { content: counter(step); font: 600 clamp(3rem, 6vw, 5rem)/1 var(--font-display); font-stretch: 112%; color: var(--grass); }
.hithub-page .site-content .step__title { font: 600 clamp(1.375rem, 2.4vw, 2rem)/1.1 var(--font-display); }
.step p { max-width: 34ch; }
@media (min-width: 768px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Quotes */
.page-quotes { padding: 0 var(--gutter) clamp(72px, 12vh, 128px); display: grid; gap: 40px; }
.page-quotes .quote { margin: 0; display: grid; gap: 12px; align-content: start; }
.page-quotes blockquote { margin: 0; padding: 0; border: 0; font: 600 clamp(1.5rem, 2.8vw, 2.25rem)/1.2 var(--font-display); font-stretch: 112%; letter-spacing: -.025em; color: var(--grass); quotes: "“" "”"; }
.page-quotes blockquote p::before { content: open-quote; }
.page-quotes blockquote p::after { content: close-quote; }
.page-quotes figcaption { font-weight: 600; font-size: .9375rem; color: var(--ink-soft); }
@media (min-width: 900px) { .page-quotes { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Services: boards laid out as a block, not a pinned run. */
.hithub-page .ch-games { padding: clamp(72px, 12vh, 128px) 0 0; }
.hithub-page .site-content .ch-games .section-title { margin-bottom: clamp(24px, 4vh, 48px); }
.hithub-page .boards { padding: 0; }
.hithub-page .board { min-height: 380px; }
@media (min-width: 768px) { .hithub-page .boards { grid-template-columns: 1fr 1fr; } }

.extras__list { list-style: none; margin: clamp(24px, 5vh, 48px) 0 0; padding: 0; }
.extra { display: grid; gap: 12px; justify-items: start; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.hithub-page .site-content .extra__title { font: 600 clamp(1.5rem, 3vw, 2.5rem)/1.08 var(--font-display); }
@media (min-width: 900px) { .extra { grid-template-columns: 1.2fr 1.2fr auto; align-items: center; gap: 40px; } }

/* Contact: three big doors. */
.reach { display: grid; }
.reach__tile, .reach__tile:visited { display: grid; gap: 8px; align-content: end; min-height: 200px; padding: clamp(24px, 3vw, 40px); text-decoration: none; transition: filter .25s var(--ease); }
.reach__tile:hover { filter: brightness(1.06); }
.reach__tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.reach__label { font-weight: 600; }
.reach__value { font: 600 clamp(1.75rem, 3vw, 2.75rem)/1.08 var(--font-display); font-stretch: 112%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reach__value--small { font-size: clamp(1.125rem, 1.9vw, 1.625rem); }
.reach__tile--sign, .reach__tile--sign:visited, .reach__tile--sign:hover { background: var(--sign); color: var(--ink); }
.reach__tile--blue, .reach__tile--blue:visited, .reach__tile--blue:hover { background: var(--blue); color: #fff; }
.reach__tile--blue:focus-visible { outline-color: #fff; }
.reach__tile--white, .reach__tile--white:visited, .reach__tile--white:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 768px) { .reach { grid-template-columns: repeat(3, 1fr); } }

.where { display: grid; }
.where__copy { padding: clamp(56px, 10vh, 96px) var(--gutter); display: grid; gap: 16px; justify-items: start; align-content: center; }
.where__address { font-size: 1.1875rem; max-width: 36ch; }
.where__hours { font-weight: 600; }
.where__socials { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.where__socials a, .where__socials a:visited { display: inline-block; padding: 8px 0; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.where__socials a:hover { color: var(--blue); }
.where__map { display: block; width: 100%; min-height: 340px; height: 100%; border: 0; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 1.2fr; } .where__map { min-height: 520px; } }

/* The plugin's form, in the site's fields. */
.message__form { margin-top: clamp(24px, 5vh, 40px); max-width: 720px; }
.message .srfm-form-container, .message .srfm-form { background: transparent !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.message .srfm-block-label, .message label { color: var(--ink) !important; font: 600 1rem/1.4 var(--font-body) !important; }
.message .srfm-form input:not([type="hidden"]):not([type="submit"]), .message .srfm-form textarea {
	background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--line-strong) !important; border-radius: var(--radius) !important; font: 400 1rem/1.4 var(--font-body) !important; min-height: 48px; padding: 12px 14px !important; box-shadow: none !important;
}
.message .srfm-form input::placeholder, .message .srfm-form textarea::placeholder { color: var(--ink-soft) !important; opacity: 1; }
.message .srfm-form input:focus, .message .srfm-form textarea:focus { border-color: var(--grass) !important; outline: none; box-shadow: 0 0 0 3px rgba(0, 122, 58, .25) !important; }
.message .srfm-button, .message button[type="submit"] { background: var(--sign) !important; color: var(--ink) !important; border: 0 !important; border-radius: var(--radius-btn) !important; min-height: 48px; padding: 0 26px !important; font: 600 1rem/1 var(--font-body) !important; box-shadow: none !important; }
.message .srfm-button:hover, .message button[type="submit"]:hover { background: var(--sign-hot) !important; }

/* Closing call */
.page-cta { padding: clamp(80px, 16vh, 160px) var(--gutter); display: grid; gap: 32px; justify-items: start; }
.hithub-page .site-content .page-cta__title { font: 600 clamp(2.75rem, 8vw, 6.5rem)/1.02 var(--font-display); max-width: 11ch; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The font shorthands above reset font-stretch, so the display width is set after them. */
.hithub-page .site-content .page-hero__title, .hithub-page .site-content .page-cta__title, .hithub-page .site-content .fact__title, .hithub-page .site-content .step__title, .hithub-page .site-content .extra__title { font-stretch: 112%; letter-spacing: -.025em; }

/* Landscape phones: a shorter hero, with the chalk ground beside the words. */
@media (max-height: 500px) and (min-width: 560px) {
	.page-hero { min-height: 0; padding-block: 24px; grid-template-columns: 1.6fr 1fr; }
	.hithub-page .site-content .page-hero__title { font-size: clamp(2rem, 13vh, 3.25rem); max-width: none; }
	.page-hero__copy { gap: 10px; }
	.page-hero__ground { width: min(100%, 220px); }
	.fact { min-height: 160px; }
	.reach__tile { min-height: 130px; }
}
