/*
Theme Name: Grace & Tommy — Seersucker
Theme URI: https://tgkarcher.com
Author: The Karchers
Description: Wedding site theme for Grace & Tommy, July 17, 2027. Paper, butter, sky and navy with a seersucker stripe.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tkwedding
*/

:root {
	--tk-paper: #FFFCF0;
	--tk-butter: #FFE873;
	--tk-sky: #BCDDF4;
	--tk-navy: #1B2F4B;
	--tk-line: 1px solid var(--tk-navy);
	--tk-gutter: clamp(20px, 4.4vw, 56px);
	--tk-max: 1168px;
	--tk-display: 'Fraunces', Georgia, serif;
	--tk-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	/* One 64-unit repeat: paper, sky, paper, butter. */
	--tk-stripe-64: repeating-linear-gradient(90deg, var(--tk-paper) 0 20px, var(--tk-sky) 20px 32px, var(--tk-paper) 32px 52px, var(--tk-butter) 52px 64px);
	--tk-stripe-32: repeating-linear-gradient(90deg, var(--tk-paper) 0 10px, var(--tk-sky) 10px 16px, var(--tk-paper) 16px 26px, var(--tk-butter) 26px 32px);
	--tk-stripe-16: repeating-linear-gradient(90deg, var(--tk-paper) 0 5px, var(--tk-sky) 5px 8px, var(--tk-paper) 8px 13px, var(--tk-butter) 13px 16px);
}

body { margin: 0; -webkit-font-smoothing: antialiased; }

:where(.wp-site-blocks, .editor-styles-wrapper) :where(h1, h2, h3, h4, p, figure) { margin: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
	font-family: var(--tk-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	line-height: 1.4;
}
.tk-lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 620px; }
.tk-caption { font-family: var(--tk-display); font-style: italic; font-weight: 300; font-size: 17px; }
.tk-h4 { font-family: var(--tk-display); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.15; }

/* Hairline stripe underline for text links */
.tk-link a,
a.tk-link {
	display: inline-block;
	padding-bottom: 6px;
	background-image: var(--tk-stripe-16);
	background-repeat: no-repeat;
	background-size: 100% 4px;
	background-position: bottom;
	text-decoration: none;
	font-size: 16px;
}
.tk-link a:hover, a.tk-link:hover { background-size: 100% 6px; }

/* ---------- Stripes ---------- */
.tk-stripe-banner { height: 18px; background: var(--tk-stripe-64); }
.tk-stripe-rule { height: 10px; background: var(--tk-stripe-32); }

/* ---------- Buttons ---------- */
.wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; transition: background-color .15s, color .15s; }
.wp-block-button__link:hover { background: var(--tk-paper); color: var(--tk-navy); }
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--tk-paper); color: var(--tk-navy); border: 1.5px solid var(--tk-navy); padding: 18px 32px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--tk-butter); }
.wp-block-buttons { gap: 14px; }
:focus-visible { outline: 3px solid var(--tk-navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tk-butter); }

/* ---------- Header ---------- */
.tk-header { background: var(--tk-paper); position: relative; z-index: 10; }
.tk-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 22px var(--tk-gutter);
}
.tk-logo { font-family: var(--tk-display); font-style: italic; font-weight: 300; font-size: 32px; line-height: 1; }
.tk-logo a { text-decoration: none; }
.tk-nav .wp-block-navigation__container { gap: 36px; align-items: center; }
.tk-nav .wp-block-navigation-item__content {
	font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 6px;
}
.tk-nav .wp-block-navigation-item:not(.tk-nav-rsvp) .wp-block-navigation-item__content:hover,
.tk-nav .current-menu-item:not(.tk-nav-rsvp) .wp-block-navigation-item__content {
	background-image: var(--tk-stripe-16); background-repeat: no-repeat; background-size: 100% 4px; background-position: bottom;
}
.tk-nav .tk-nav-rsvp .wp-block-navigation-item__content {
	background: var(--tk-navy); color: var(--tk-paper); border: var(--tk-line);
	height: 44px; padding: 0 28px; display: inline-flex; align-items: center;
}
.tk-nav .tk-nav-rsvp .wp-block-navigation-item__content:hover { background: var(--tk-paper); color: var(--tk-navy); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--tk-paper) !important; color: var(--tk-navy) !important; padding: 32px var(--tk-gutter); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 28px; }

/* ---------- Sections ---------- */
.tk-section { padding: clamp(64px, 8vw, 96px) var(--tk-gutter) clamp(64px, 7vw, 88px); border-bottom: var(--tk-line); }
.tk-section.is-butter { background: var(--tk-butter); border-top: var(--tk-line); }
.tk-section.no-rule { border-bottom: 0; }
.tk-wrap { max-width: var(--tk-max); margin: 0 auto; }
.tk-head { display: flex; flex-direction: column; gap: 14px; }
.tk-head.is-center { align-items: center; text-align: center; }
.tk-head + * { margin-top: clamp(32px, 4vw, 48px) !important; }

/* ---------- Hero ---------- */
.tk-hero {
	min-height: clamp(560px, 62vw, 760px);
	background: var(--tk-stripe-64);
	display: flex; align-items: center; justify-content: center;
	padding: 56px var(--tk-gutter);
	box-sizing: border-box;
	border-bottom: var(--tk-line);
}
.tk-hero__card {
	width: 100%; max-width: 560px; box-sizing: border-box;
	background: var(--tk-paper); border: var(--tk-line);
	padding: clamp(36px, 5vw, 48px) clamp(24px, 4vw, 40px);
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.tk-hero__card .eyebrow { margin-bottom: 14px; }
.tk-hero__names { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--wp--preset--font-size--display) !important; line-height: 0.95 !important; }
.tk-hero__name { display: block; }
.tk-amp {
	width: 64px; height: 64px; border-radius: 50%; background: var(--tk-butter);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--tk-display); font-style: italic; font-weight: 400; font-size: 42px; line-height: 1;
	flex: 0 0 auto;
}
.tk-hero__date { font-family: var(--tk-display); font-style: italic; font-weight: 400; font-size: 28px; line-height: 1.1; margin-top: 22px !important; }
.tk-hero__place { font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 6px !important; }
.tk-hero__card .wp-block-buttons { margin-top: 28px; justify-content: center; }

/* ---------- Countdown band ---------- */
.tk-countdown {
	background: var(--tk-butter); border-bottom: var(--tk-line);
	padding: 28px var(--tk-gutter);
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 12px 28px;
}
.tk-countdown__num { font-family: var(--tk-display); font-style: italic; font-weight: 300; font-size: 64px; line-height: 1; }
.tk-countdown__label { font-family: var(--tk-display); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.1; }
.tk-countdown__note { font-size: 16px; padding-left: 28px; border-left: var(--tk-line); }

/* ---------- Cards ---------- */
.tk-grid { display: grid; gap: 24px; }
.tk-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-grid + .tk-grid { margin-top: 24px !important; }

.tk-card { border: var(--tk-line); background: var(--tk-paper); display: flex; flex-direction: column; }
.tk-card::before { content: ""; display: block; height: 18px; background: var(--tk-stripe-64); border-bottom: 0; }
.tk-card > .tk-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tk-card .tk-card__text { font-size: 16px; line-height: 1.5; }
.tk-card .tk-link { margin-top: auto; padding-top: 6px; }

.tk-fact { border-top: var(--tk-line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tk-fact p:last-child { font-size: 15px; line-height: 1.5; }

/* ---------- Split (photo + text) ---------- */
.tk-split { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); border-bottom: var(--tk-line); }
.tk-split.is-reversed { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.tk-split__media { padding: var(--tk-gutter); border-right: var(--tk-line); }
.tk-split.is-reversed .tk-split__media { border-right: 0; border-left: var(--tk-line); order: 2; }
.tk-split__text { padding: clamp(48px, 6vw, 88px) clamp(24px, 5.6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.tk-split.is-reversed .tk-split__text { padding-left: var(--tk-gutter); }
.tk-photo { border: var(--tk-line); overflow: hidden; height: clamp(360px, 48vw, 620px); }
.tk-photo img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 20%; }

/* ---------- Timeline ---------- */
.tk-timeline { border-bottom: var(--tk-line); }
.tk-timeline__row { display: grid; grid-template-columns: 200px 340px minmax(0, 1fr); gap: 40px; padding: 30px 0; border-top: var(--tk-line); align-items: baseline; }
.tk-timeline__row h3 { font-size: 38px; }
.tk-timeline__row p:last-child { font-size: 17px; line-height: 1.6; }

/* ---------- Photo strip / placeholders ---------- */
.tk-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.tk-gallery .tk-photo { height: 360px; }
.tk-placeholder {
	border: var(--tk-line); background: var(--tk-paper);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
	min-height: 200px;
}
.tk-gallery .tk-placeholder { height: 360px; }

/* ---------- People ---------- */
.tk-person { display: flex; flex-direction: column; gap: 8px; }
.tk-person .tk-placeholder { aspect-ratio: 4 / 5; min-height: 0; max-height: 420px; margin-bottom: 12px; }
.tk-person h3 { font-size: 30px; }
.tk-person p:last-child { font-size: 15px; line-height: 1.5; }
.tk-group-title { margin-top: clamp(56px, 6vw, 80px) !important; margin-bottom: 32px !important; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Registry ---------- */
.tk-registry .tk-card__body h3 { font-size: 40px; }
.tk-registry .tk-card__body .wp-block-buttons { margin-top: auto; padding-top: 16px; }
.tk-mail { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------- RSVP ---------- */
.tk-rsvp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.tk-rsvp__main { display: flex; flex-direction: column; gap: 18px; }
.tk-aside { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Footer ---------- */
.tk-footer { background: var(--tk-paper); border-top: var(--tk-line); }
.tk-footer__main { padding: 48px var(--tk-gutter) 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.tk-footer__names { font-family: var(--tk-display); font-style: italic; font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.tk-footer__meta { font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 10px !important; }
.tk-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.tk-footer__links a { text-decoration: none; }
.tk-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tk-footer__fine { padding: 0 var(--tk-gutter) 32px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.tk-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tk-timeline__row { grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; }
	.tk-timeline__row p:last-child { grid-column: 2; }
	.tk-rsvp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.tk-grid.cols-2, .tk-grid.cols-3, .tk-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
	.tk-split, .tk-split.is-reversed { grid-template-columns: minmax(0, 1fr); }
	.tk-split__media, .tk-split.is-reversed .tk-split__media { border: 0; border-bottom: var(--tk-line); order: 0; }
	.tk-split.is-reversed .tk-split__text { padding-left: var(--tk-gutter); }
	.tk-timeline__row { grid-template-columns: minmax(0, 1fr); }
	.tk-timeline__row p:last-child { grid-column: auto; }
	.tk-timeline__row h3 { font-size: 32px; }
	.tk-gallery { grid-template-columns: minmax(0, 1fr); }
	.tk-gallery .tk-photo, .tk-gallery .tk-placeholder { height: 280px; }
	.tk-countdown__note { padding-left: 0; border-left: 0; flex-basis: 100%; text-align: center; }
	.tk-footer__links { align-items: flex-start; }
	.tk-logo { font-size: 26px; }
}
