/* Shared styling for the Fairway pages. Palette follows the app's own look — the
   fairway green it tints everything with, and the flag orange kept for the one
   thing that should catch the eye. */

:root {
	--green: #14803f;
	--deep: #0e5c2d;
	--flag: #d2601f;
	--ink: #14161a;
	--body: #3c414a;
	--muted: #6b7280;
	--rule: #e4e6ea;
	--page: #f8f8f9;
	--card: #ffffff;
	--link: #106b36;
}

@media (prefers-color-scheme: dark) {
	:root {
		--green: #4fbf67;
		--deep: #3aa455;
		--flag: #f88a4d;
		--ink: #f3f4f6;
		--body: #ccd1d9;
		--muted: #919aa5;
		--rule: #2b2f36;
		--page: #0f1013;
		--card: #191b1f;
		--link: #5cc774;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0 20px 72px;
	background: var(--page);
	color: var(--body);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
}

.wrap {
	max-width: 720px;
	margin: 0 auto;
}

header.site {
	padding: 48px 0 8px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 32px;
}

/* A flagstick on a green — the same mark as the app icon, at the same
   proportions. */
.mark {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background:
		radial-gradient(ellipse 20px 8px at 28px 42px, #9cdda3 0 99%, transparent 100%),
		linear-gradient(#faf9f6 0 0) 27px 15px / 3px 28px no-repeat,
		linear-gradient(135deg, #38a95f, #0e5130);
	vertical-align: middle;
	margin-right: 14px;
	position: relative;
}

.mark::after {
	content: "";
	position: absolute;
	left: 30px;
	top: 15px;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 15px solid #f97316;
}

h1 {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	font-size: 30px;
	letter-spacing: -0.02em;
	color: var(--ink);
}

h2 {
	margin: 40px 0 12px;
	font-size: 21px;
	color: var(--ink);
	letter-spacing: -0.01em;
}

h3 {
	margin: 28px 0 6px;
	font-size: 17px;
	color: var(--ink);
}

p {
	margin: 0 0 14px;
}

.lede {
	font-size: 19px;
	color: var(--ink);
	margin: 20px 0 8px;
}

a {
	color: var(--link);
}

ul {
	padding-left: 22px;
	margin: 0 0 16px;
}

li {
	margin-bottom: 8px;
}

.shots {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 28px 0 8px;
	justify-content: center;
}

.shots figure {
	margin: 0;
	text-align: center;
	flex: 0 0 auto;
	width: 160px;
}

.shots img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--rule);
}

.shots figcaption {
	font-size: 13px;
	color: var(--muted);
	margin-top: 8px;
}

.note {
	background: var(--card);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--green);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 20px 0;
}

.note p:last-child {
	margin-bottom: 0;
}

/* The join code, set the way the app sets it. */
.code {
	display: inline-flex;
	gap: 4px;
	vertical-align: middle;
}

.code span {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: 2px 7px;
	color: var(--ink);
}

/* Under par warm, over par cool — the colours a scorecard already uses. */
.under { color: var(--flag); font-weight: 600; }
.over { color: #4f5bd5; font-weight: 600; }

nav.sub {
	margin-top: 14px;
	font-size: 15px;
}

nav.sub a {
	margin-right: 18px;
}

footer {
	margin-top: 56px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
	color: var(--muted);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: 1px 5px;
}
