/* chippytrip-web: www.chippytrip.com. Colours from ChippyTrack's --chippy-* palette. */
:root {
	--cream: #FAF3E7;
	--sand: #E8D5B7;
	--ink: #3A2A1E;
	--brown: #6B4226;
	--muted: #7A6552;
	--sky: #8ECAE6;
	--sky-ink: #0C4A6B;
	--teal: #5A9BB5;
	--rust: #B33A3A;
	--card: #FFFDF9;
	--radius: 1rem;
	--font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font: 17px/1.6 var(--font);
	background: var(--cream);
	color: var(--ink);
}

a { color: var(--brown); }
a:hover { color: var(--ink); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header and footer ------------------------------------------------------- */

.site-header { padding: 1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
	display: flex; align-items: center; gap: .6rem;
	font-weight: 800; font-size: 1.25rem; color: var(--brown); text-decoration: none;
}
.brand img { width: 40px; height: 40px; }

.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brown); text-decoration: underline; text-underline-offset: .3em; }

.site-footer { padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.site-footer a { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* Home -------------------------------------------------------------------- */

.hero { padding: 2.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; color: var(--brown); letter-spacing: -.01em; }
.hero p { font-size: 1.2rem; margin: 0 0 1.75rem; max-width: 30rem; }
.hero img { width: 100%; max-width: 420px; height: auto; justify-self: center; filter: drop-shadow(0 12px 24px rgba(58, 42, 30, .18)); }

.button {
	display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; border: 0;
	background: var(--brown); color: var(--cream); font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--cream); }
.button.secondary { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 2px var(--brown); }
.button.secondary:hover { background: var(--brown); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.product { background: var(--sand); padding: 4rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0; }
.product h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .25rem 0 .5rem; color: var(--brown); }
.product .lead { font-size: 1.2rem; margin: 0 0 2rem; max-width: 40rem; }

.features { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.features li { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.features strong { display: block; color: var(--brown); margin-bottom: .2rem; }
.features li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.status { display: inline-block; background: var(--sky); color: var(--sky-ink); font-weight: 700; font-size: .9rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }

/* About ------------------------------------------------------------------ */

.about h2 { font-size: 1.4rem; color: var(--brown); margin: 0; }
.bio { display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0 1.25rem; }
.bio img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none;
	box-shadow: 0 8px 20px rgba(58, 42, 30, .18); }
.about p { margin: 0 0 1rem; }
.about .actions { margin-top: 2rem; }

/* Long-form pages (privacy, terms, support, delete account) ------------- */

.prose h2 { font-size: 1.35rem; color: var(--brown); margin: 2.25rem 0 .5rem; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .3rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose .form { margin-top: 2rem; }

/* Contact ----------------------------------------------------------------- */

.page { padding: 2rem 0 3rem; }
.page .wrap { max-width: 38rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--brown); margin: 0 0 .5rem; line-height: 1.15; }
.page .intro { margin: 0 0 2rem; }

.form { background: var(--card); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 6px 24px rgba(58, 42, 30, .08); }
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field .small { margin-top: .3rem; }
.choices { display: flex; gap: 1.5rem; }
.field label.choice { display: flex; align-items: center; gap: .45rem; font-weight: 600; margin: 0; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--brown); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	padding: .7rem .85rem; border: 1.5px solid #CBB79C; border-radius: .6rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--teal); }

/* Bots fill this in; people never see it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: .6rem; padding: .8rem 1rem; margin-bottom: 1.25rem; font-weight: 600; }
.notice.error { background: #FBEAEA; color: var(--rust); }
.notice[hidden] { display: none; }

.small { font-size: .9rem; color: var(--muted); }

/* Form errors (Laravel validation) --------------------------------------- */

.field .invalid { border-color: var(--rust); }
.field-error { color: var(--rust); font-size: .9rem; font-weight: 600; margin-top: .3rem; }

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 760px) {
	.site-nav { gap: .8rem; font-size: .95rem; }
	.brand img { width: 32px; height: 32px; }
	.brand { font-size: 1.1rem; }
	.hero { padding-top: 1rem; }
	.hero .wrap { grid-template-columns: 1fr; text-align: center; }
	.hero img { max-width: 260px; grid-row: 1; }
	.hero p { margin-left: auto; margin-right: auto; }
	.hero .actions { justify-content: center; }
	.features { grid-template-columns: 1fr; }
	.form { padding: 1.25rem; }
	.bio { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
	.site-header .wrap { flex-wrap: wrap; justify-content: center; row-gap: .35rem; }
}
