/* ==========================================================================
   Island of Durian Store · base: tokens, reset, typography, motion
   Design direction "Warm Linen" (Peter, 22 Okt 2026)
   ========================================================================== */

:root {
	--bg: #FAF6F0;
	--bg-2: #F4EDE3;
	--surface: #FFFFFF;
	--sand: #EFE5D6;
	--sand-2: #E6D8C4;
	--line: #E8DFD2;
	--line-2: #D8CBB8;
	--ink: #221D19;
	--ink-2: #5A4F46;
	--ink-3: #8B8075;
	--ink-inv: #FFFBF6;

	--red: #D21F27;
	--red-600: #B3151D;
	--red-700: #8F1017;
	--red-50: #FCEDEC;
	--red-100: #F8D7D5;
	--gold: #A9844A;
	--gold-600: #86672F;
	--gold-50: #F7EFE1;
	--gold-100: #EEDFC3;
	--green: #2C7A57;
	--green-50: #E6F2EB;
	--amber: #A86A12;
	--amber-50: #FBF0DC;
	--blue: #2E5B86;
	--blue-50: #E7EEF5;
	--night: #1C1916;

	--font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-xs: .75rem;
	--fs-sm: .8125rem;
	--fs-base: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
	--fs-2xl: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
	--fs-3xl: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);

	--r-xs: 6px;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 22px;
	--r-xl: 30px;
	--r-pill: 999px;

	--sh-1: 0 1px 2px rgba(34, 29, 25, .05), 0 2px 10px rgba(34, 29, 25, .04);
	--sh-2: 0 10px 30px -8px rgba(34, 29, 25, .16);
	--sh-3: 0 24px 60px -16px rgba(34, 29, 25, .28);

	--container: 1320px;
	--gutter: clamp(16px, 3.4vw, 40px);
	--header-h: 64px;
	--tabbar-h: 64px;
	--ease: cubic-bezier(.22, .7, .18, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--t: .28s;
}

@media (min-width: 1024px) {
	:root {
		--fs-base: 1rem;
		--header-h: 76px;
	}
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-600); }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
[hidden] { display: none !important; }
::selection { background: var(--red-100); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Typography -------------------------------------------------------------- */
h1, h2, .h1, .h2, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.012em; line-height: 1.12; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1, .h1 { font-size: var(--fs-3xl); }
h2, .h2 { font-size: var(--fs-2xl); }
h3, .h3 { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
h4, .h4 { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.prose { line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-xl); color: var(--ink); margin-top: 1.6em; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); }
.prose table { font-size: var(--fs-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Layout primitives -------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1520px; }
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--sand { background: var(--bg-2); }
.section--white { background: var(--surface); }
.stack > * + * { margin-top: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, 10px); align-items: center; }
.grid-2 { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Motion: reveal on scroll (only when JS + motion allowed) ----------------- */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="zoom"] { transform: scale(.97); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
@keyframes igt-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes igt-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes igt-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes igt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes igt-spin { to { transform: rotate(360deg); } }
@keyframes igt-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
