/* Sunny's List. The look of sunnymorgan.com (theme sm27): one family (Inter),
   flat color fields, huge uppercase titles, pill buttons, the yellow marker.
   Values come from sm27's theme.json. */

@font-face {
	font-family: Inter;
	src: url("Inter-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--blue: #03a9ee;
	--ink: #111315;
	--white: #fff;
	--development: #00a7e3;
	--seo: #00953d;
	--yellow: #ffcd00;
	--performance: #ff6c13;
	--hosting: #e0241d;
	--support: #9b26b6;
	--gray-50: #eceef0;
	--gray-100: #dfe2e5;
	--gray-400: #a3a8ad;
	--gray-600: #5d6166;
	--gray-700: #4a4f54;

	--margin: clamp(20px, 4.4vw, 64px);
	--gap: 20px;
	--section: clamp(96px, 10vw, 168px);
	--s-20: 12px;
	--s-30: 16px;
	--s-40: 24px;
	--s-50: 40px;
	--s-60: 64px;
	--s-70: 104px;

	--size-lead: clamp(1.25rem, 1.02rem + .95vw, 2rem);
	--size-heading: clamp(2rem, 1.1rem + 2.6vw, 3.5rem);
	--size-display: clamp(3rem, 1.4rem + 6.4vw, 8rem);
	--size-hero: clamp(3.25rem, .9rem + 7.6vw, 9rem);
	--size-intro: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
	--reach: .34em;

	--ease: cubic-bezier(.4, 0, .2, 1);
	--nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 19px;
	font-weight: 450;
	line-height: 1.6;
	letter-spacing: -.008em;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
@media (max-width: 700px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--fg, currentColor); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fields: each section is one flat color ---------- */

[data-theme] { background: var(--bg); color: var(--fg); }
[data-theme="white"] { --bg: var(--white); --fg: var(--ink); --muted: var(--gray-600); --line: var(--gray-100); }
[data-theme="mist"] { --bg: var(--gray-50); --fg: var(--ink); --muted: var(--gray-600); --line: var(--gray-100); }
[data-theme="blue"] { --bg: var(--blue); --fg: var(--ink); --muted: #10303f; --line: rgb(17 19 21 / .25); }
[data-theme="ink"] { --bg: var(--ink); --fg: var(--white); --muted: var(--gray-400); --line: rgb(255 255 255 / .16); }
[data-theme="yellow"] { --bg: var(--yellow); --fg: var(--ink); --muted: #3d3410; --line: rgb(17 19 21 / .25); }

.wrap { padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-50) var(--gap); }

/* ---------- Type ---------- */

.display, .hero__title {
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -.045em;
	line-height: .82;
}
.display { font-size: var(--size-display); }
.hero__title { font-size: var(--size-hero); }

h2.heading { font-size: var(--size-heading); font-weight: 900; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }

.lead {
	font-size: var(--size-lead);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -.022em;
	max-width: 30ch;
	text-wrap: pretty;
}
.intro { font-size: var(--size-intro); font-weight: 500; line-height: 1.3; max-width: 34ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* The highlighter: always ink on yellow. */
.marker {
	position: relative;
	z-index: 0;
	display: inline-block; /* the highlight is one line tall, so it never covers the lines above and below */
	color: var(--ink);

	&::before {
		content: "";
		position: absolute;
		inset: 0 calc(var(--reach) * -1);
		z-index: -1;
		background: var(--yellow);
	}
}
@media (max-width: 900px) { :root { --reach: .25em; } } /* a phone's margin is narrow: the highlight stays off the edge */
[data-theme="yellow"] .marker { color: var(--white); &::before { background: var(--ink); } }

/* ---------- Buttons ---------- */

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 2px solid var(--fg);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	color: var(--fg);
	background: transparent;
	transition: background-color .3s var(--ease), color .3s var(--ease);

	&:hover { background: var(--fg); color: var(--bg); }
}
.pill--fill { background: var(--fg); color: var(--bg); &:hover { background: transparent; color: var(--fg); } }
.pill--big { min-height: 64px; padding: 0 40px; }
.buttons { display: flex; flex-wrap: wrap; gap: var(--s-30); }

/* ---------- Header ---------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: var(--s-40);
	height: var(--nav-h);
	padding-inline: var(--margin);
	color: var(--fg);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: blur(20px) saturate(1.2);
	backdrop-filter: blur(20px) saturate(1.2);
	transition: background-color .45s var(--ease), color .45s var(--ease);
}
.nav__logo { margin-right: auto; }
.nav__links { display: flex; gap: var(--s-40); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav__links a { padding-block: 8px; }
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 980px) { .nav__links { display: none; } }
@media (max-width: 480px) {
	.nav { gap: var(--s-30); }
	.nav .pill { padding: 0 16px; font-size: 13px; }
	.hide-sm { display: none; }
}

/* The wordmark: SUNNY'S takes the field's text color, LIST is blue (white on the blue field, ink on yellow). */
.wordmark {
	display: inline-flex;
	gap: .22em;
	font-size: clamp(24px, 19px + .7vw, 32px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.045em;
	text-transform: uppercase;
	white-space: nowrap;

	b { font-weight: inherit; color: var(--blue); }
}
[data-theme="blue"] .wordmark b { color: var(--white); }
[data-theme="yellow"] .wordmark b { color: inherit; } /* as sm27: blue on yellow is 1.8:1, so the whole mark goes ink */

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 112px) 0; }
.hero__grid { align-items: end; }
.hero__copy { grid-column: 1 / 8; display: grid; gap: var(--s-50); align-content: start; }
.hero__frame { font-size: var(--size-intro); font-weight: 700; max-width: 36ch; }
.hero__week { grid-column: 8 / -1; }
@media (max-width: 1100px) { .hero__copy, .hero__week { grid-column: 1 / -1; } }

/* The color rule: the Pantone set as steps with gaps, never as stacked bands. */
.rule {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(4px, .5vw, 8px);
	margin-top: clamp(64px, 8vw, 120px);

	span { height: clamp(10px, 1.2vw, 18px); background: var(--c); }
}

/* A week of jobs: the sample card */
.week {
	--bg: var(--white);
	--fg: var(--ink);
	--muted: var(--gray-600);
	--line: var(--gray-100);
	background: var(--bg);
	color: var(--fg);
	padding: clamp(24px, 2.4vw, 36px);
	border-radius: 4px;
}
.week__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--s-30);
	padding-bottom: var(--s-30);
	border-bottom: 2px solid var(--ink);

	h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
	.label { white-space: nowrap; }
}
.week__list { display: grid; }
.job {
	display: grid;
	gap: 4px;
	padding-block: var(--s-30);
	border-bottom: 1px solid var(--line);
	font-size: 16px;
	line-height: 1.4;

	&:last-child { border-bottom: 0; padding-bottom: 0; }
	.job__place { font-weight: 800; font-size: 17px; }
	.job__tag { display: inline-block; width: fit-content; padding: 2px 8px; border-radius: 999px; background: var(--gray-50); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
	.job__tag--open { background: var(--yellow); }
	a { color: var(--gray-700); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
	a:hover { color: var(--ink); }
}
.week__foot { margin-top: var(--s-30); font-size: 14px; color: var(--muted); }

/* ---------- How it works: three giant words ---------- */

.steps { display: grid; gap: var(--s-60); margin-top: var(--s-70); }
.step {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s-30) var(--gap);
	align-items: end;
	padding-top: var(--s-40);
	border-top: 2px solid var(--fg);

	.display { grid-column: 1 / 8; display: flex; align-items: center; gap: .18em; }
	.display::before { content: ""; flex: none; width: .5em; height: .5em; background: var(--c); }
	p { grid-column: 8 / -1; max-width: 34ch; }
}
@media (max-width: 900px) { .step .display, .step p { grid-column: 1 / -1; } }

/* ---------- Three moments ---------- */

.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-50) var(--gap); margin-top: var(--s-70); }
.moment {
	display: grid;
	gap: var(--s-30);
	align-content: start;
	padding-top: var(--s-40);
	border-top: 2px solid var(--c);

	.num { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
	h3 { font-size: clamp(26px, 1.4rem + 1vw, 40px); font-weight: 900; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
	p { color: var(--muted); font-size: 17px; }
	.kinds { font-size: 14px; font-weight: 600; color: var(--fg); }
}
@media (max-width: 900px) { .moments { grid-template-columns: 1fr; } }

/* ---------- Seats ---------- */

.seats__intro { grid-column: 1 / 7; display: grid; gap: var(--s-40); align-content: start; }
.seats__note { grid-column: 8 / -1; align-self: end; display: grid; gap: var(--s-30); font-size: 17px; }
@media (max-width: 900px) { .seats__intro, .seats__note { grid-column: 1 / -1; } }

.board { margin-top: var(--s-60); border-top: 2px solid var(--fg); }
.seat {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: var(--s-30) var(--s-40);
	min-height: 72px;
	padding-block: var(--s-20);
	border-bottom: 1px solid var(--line);

	.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
	.seat__name { font-size: clamp(20px, 1rem + .9vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
	.seat__status { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
	.pill { min-height: 40px; padding: 0 18px; font-size: 13px; }

	/* Taken seats are grayed out, and still pass AA. */
	&.is-taken { color: var(--gray-600); }
	&.is-taken .seat__name { text-decoration: line-through; text-decoration-thickness: 2px; }
	&.is-taken .dot { background: var(--gray-400); }
	&.is-taken .pill { --fg: var(--gray-600); }
}
/* A phone has no room for a third column: the status (and the week's job count) sits under the name. */
@media (max-width: 640px) {
	.seat { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px var(--s-30); }
	.seat .dot { grid-area: 1 / 1 / 3; }
	.seat .seat__status { grid-area: 2 / 2; font-size: 12px; }
	.seat .pill { grid-area: 1 / 3 / 3; padding: 0 14px; font-size: 12px; }
}
.board__more { margin-top: var(--s-40); font-size: 17px; }
.board__more a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Price ---------- */

.price__head { grid-column: 1 / 7; display: grid; gap: var(--s-40); align-content: start; }
.price__terms { grid-column: 7 / -1; display: grid; gap: 0; align-content: start; border-top: 2px solid var(--fg); }
.price__terms li { padding-block: var(--s-30); border-bottom: 1px solid var(--line); font-size: var(--size-intro); font-weight: 600; line-height: 1.3; }
.price__terms li b { font-weight: 900; }
@media (max-width: 900px) { .price__head, .price__terms { grid-column: 1 / -1; } }

/* ---------- Sunny ---------- */

.me__photo { grid-column: 1 / 5; }
.me__photo img { width: 100%; height: auto; aspect-ratio: 768 / 931; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.05); }
.me__words { grid-column: 6 / -1; display: grid; gap: var(--s-40); align-content: center; }
.me__words p { max-width: 46ch; }
.me__words a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .me__photo { grid-column: 1 / 9; } .me__words { grid-column: 1 / -1; } }

/* ---------- Start: the free sample form ---------- */

.start__head { grid-column: 1 / 7; display: grid; gap: var(--s-40); align-content: start; }
.start__form { grid-column: 7 / -1; }
@media (max-width: 900px) { .start__head, .start__form { grid-column: 1 / -1; } }

.form { display: grid; gap: var(--s-40); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.field input {
	width: 100%;
	min-height: 56px;
	padding: 0 18px;
	border: 2px solid var(--ink);
	border-radius: 4px;
	background: var(--white);
	color: var(--ink);
	font: 500 18px/1.2 Inter, system-ui, sans-serif;

	&:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
}
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__fine { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.foot { padding-top: var(--s-70); }
.foot__grid { align-items: start; padding-bottom: var(--s-60); }
.foot__tag { grid-column: 1 / 6; font-size: var(--size-intro); font-weight: 500; line-height: 1.25; color: var(--muted); max-width: 26ch; }
.foot__cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-40) var(--gap); }
.foot__col { display: grid; gap: 4px; align-content: start; font-weight: 600; font-size: 17px; }
.foot__col h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot__col a { width: fit-content; padding-block: 3px; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .foot__tag, .foot__cols { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* The wordmark across the whole width, standing on the color bar. */
.foot__mark { font-size: 12.4vw; display: flex; gap: .2em; padding-inline: var(--margin); margin-bottom: clamp(6px, .8vw, 14px); }
.foot__mark .wordmark { font-size: inherit; letter-spacing: -.06em; }
.foot .rule { margin-top: 0; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-20); padding-block: var(--s-40); font-size: 14px; color: var(--muted); }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Plain pages (terms, thanks) ---------- */

.page__head { padding-block: clamp(64px, 8vw, 128px) var(--s-60); display: grid; gap: var(--s-40); }
.prose { max-width: 66ch; padding-bottom: var(--section); font-size: 18px; }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2.2em 0 .6em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .warn { padding: var(--s-40); background: var(--gray-50); border-left: 6px solid var(--yellow); font-weight: 600; }
.draft { padding: 10px var(--margin); background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 700; }

.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-50) var(--gap); margin-top: var(--s-60); }
.next li { display: grid; gap: var(--s-20); align-content: start; padding-top: var(--s-30); border-top: 2px solid var(--c); }
.next p { color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .next { grid-template-columns: 1fr; } }
