/* ==========================================================================
   base.css: fonts, design tokens, reset, typography
   Every value below comes from the Figma variables and text styles.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
	font-family: "Lilita One";
	src: url("../fonts/lilita-one-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
	/* Colors: Figma "color/*" variables */
	--color-navy:       #0b1a5c; /* brand/navy, text/ink, border/line */
	--color-blue:       #1f3fc4; /* brand/blue */
	--color-deepblue:   #14298a; /* brand/deepblue */
	--color-yellow:     #ebb536; /* brand/yellow */
	--color-white:      #ffffff; /* surface/white, text/invert */
	--color-light:      #f1f5ff; /* surface/light */
	--color-tint:       #dce4ff; /* surface/tint */
	--color-cream:      #fff9ea; /* Used 58x in Figma but missing from its variables */
	--color-border-soft:#c9d6f5; /* border/soft */
	--color-divider:    #dde5f7; /* border/divider */
	--color-muted:      #5a6b9c; /* text/muted */
	--color-grubhub:    #ff5500; /* accent/grubhub */

	/* Fonts */
	--font-display: "Lilita One", "Arial Black", sans-serif;
	--font-body:    "DM Sans", Arial, Helvetica, sans-serif;

	/* Spacing: Figma "space/*" */
	--space-4: 4px;
	--space-8: 8px;
	--space-12: 12px;
	--space-16: 16px;
	--space-20: 20px;
	--space-24: 24px;
	--space-32: 32px;
	--space-48: 48px;
	--space-72: 72px;

	/* Radius: Figma "radius/*" */
	--radius-6: 6px;
	--radius-10: 10px;
	--radius-12: 12px;
	--radius-14: 14px;
	--radius-18: 18px;
	--radius-22: 22px;
	--radius-pill: 99px;

	/* Borders */
	--border: 2px solid var(--color-navy);

	/* Shadows: Figma effect styles (hard offset, no blur) */
	--shadow-sm: 3px 3px 0 var(--color-navy); /* shadow/card-sm */
	--shadow:    5px 5px 0 var(--color-navy); /* shadow/card */
	--shadow-lg: 6px 6px 0 var(--color-navy); /* shadow/card-lg */

	/* Containers */
	--container:        1180px; /* main content width */
	--container-narrow: 820px;  /* FAQ list, contact form */
	--container-split:  1296px; /* reservation + quote two-column sections */
	--container-header: 1392px; /* floating header on Home/Catering */
	--gutter:           20px;   /* side padding on all screen sizes */

	/* Motion (from the prototype) */
	--ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-navy);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
	margin: 0;
}

ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--color-yellow);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important; /* Accessibility: the one justified !important */
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Typography: one class per Figma text style ---------- */
.t-display-xl,
.t-display-lg,
.t-display-md,
.t-h2,
.t-h3,
.t-h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.01em; /* Figma: 1% */
}

.t-display-xl { font-size: 96px; line-height: 1; }   /* display/xl (line-height not set in Figma) */
.t-display-lg { font-size: 72px; line-height: 76px; } /* display/lg */
.t-display-md { font-size: 56px; line-height: 60px; } /* display/md */
.t-h2         { font-size: 48px; line-height: 52px; } /* heading/h2 */
.t-h3         { font-size: 30px; line-height: 34px; } /* heading/h3 */
.t-h4         { font-size: 24px; line-height: 28px; } /* heading/h4 */

.t-body-lg { font-size: 18px; line-height: 28px; } /* body/lg */
.t-body    { font-size: 16px; line-height: 26px; } /* body/base */
.t-body-sm { font-size: 14px; line-height: 17px; } /* body/sm */

.t-label-btn,
.t-label-tag {
	font-family: var(--font-body);
	font-weight: 700;
	letter-spacing: 0.02em; /* Figma: 2% */
}
.t-label-btn { font-size: 13px; line-height: 16px; } /* label/btn, label/pill */
.t-label-tag { font-size: 12px; line-height: 16px; } /* label/tag, label/nav */

.t-upper { text-transform: uppercase; }

/* Screen-reader-only text (accessibility) */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--color-yellow);
	color: var(--color-navy);
	font-weight: 700;
}
