/* Whitesides Fish 'n' Chips. Mako Digital, Nov 2026.
   Shape rule: buttons are full pills, cards and image masks are organic blobs. */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
	--navy: #0c1c5e;      /* the shop sign */
	--navy-2: #16328a;
	--blue: #00528b;      /* the logo */
	--sky: #6fa9d6;
	--ice: #e2eff7;
	--ice-2: #c4ddee;
	--foam: #f7fbfd;
	--white: #fff;
	--red: #c8102e;       /* the bunting */
	--red-dk: #a30c25;
	--text: #16234f;
	--muted: #42527c;
	--gut: clamp(16px, 4vw, 96px);
	--wrap: min(100% - 2 * var(--gut), 2700px);
	--head: clamp(84px, 5.2vw, 150px);
	--ease: cubic-bezier(.16, 1, .3, 1);
	--shadow: 0 18px 40px -18px rgba(12, 28, 94, .35);
	--wave-h: clamp(46px, 7vw, 170px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); scrollbar-color: var(--blue) var(--ice); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: "Rubik", system-ui, sans-serif; font-size: clamp(1rem, .94rem + .2vw, 1.25rem); line-height: 1.6; color: var(--text); background: var(--foam); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lilita One", "Rubik", sans-serif; font-weight: 400; line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; text-wrap: balance; color: var(--navy); }
p { margin: 0 0 1em; }
address { font-style: normal; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: .6em 1em; border-radius: 999px; }
.skip:focus { top: 12px; }
.defs { position: absolute; width: 0; height: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 600 clamp(1rem, .9rem + .2vw, 1.3rem)/1.1 "Rubik", sans-serif; padding: .85em 1.45em; border-radius: 999px; text-decoration: none; border: 2px solid transparent; white-space: nowrap; cursor: pointer;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { font-size: clamp(1.0625rem, .95rem + .35vw, 1.4rem); padding: 1em 1.75em; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dk); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }

/* ----------------------------------------------------------------- header */
.top-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.site-head { position: sticky; top: 0; z-index: 50; }
.site-head::before { content: ""; position: absolute; inset: 0; background: rgba(226, 239, 247, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; box-shadow: 0 10px 30px -22px rgba(12, 28, 94, .5); }
.site-head.is-stuck::before { opacity: 1; }
.head-in { position: relative; width: var(--wrap); margin: 0 auto; height: var(--head); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 48px); transition: height .35s var(--ease); }
.is-stuck .head-in { height: 68px; }
.call { font-size: clamp(1rem, .8rem + .3vw, 1.4rem); }
.brand { display: block; flex: none; }
.brand .logo { height: calc(var(--head) - 14px); width: auto; transition: height .35s var(--ease); }
.is-stuck .brand .logo { height: 54px; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 48px); margin-left: auto; }
.nav a { font-weight: 600; font-size: clamp(1rem, .85rem + .36vw, 1.55rem); text-decoration: none; color: var(--navy); padding: .4em 0; display: inline-block; transition: transform .3s var(--ease), color .2s; }
.nav a:hover { transform: translateY(-2px); color: var(--blue); }
.call { flex: none; }
.menu-btn { display: none; }
.sheet { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 30px 50px -30px rgba(12, 28, 94, .45); border-radius: 0 0 32px 32px; padding: 8px var(--gut) 24px; }
.sheet nav { display: grid; }
.sheet a { font: 400 1.9rem/1 "Lilita One", sans-serif; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: .45em 0; }

@media (max-width: 860px) {
	:root { --head: 68px; }
	.nav { display: none; }
	.brand .logo { height: 58px; }
	.is-stuck .brand .logo { height: 48px; }
	.call { margin-left: auto; padding: 0; width: 46px; height: 46px; }
	.call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.15rem; cursor: pointer; }
}

/* ------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--ice); margin-top: calc(var(--head) * -1); padding-top: var(--head); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8vw; top: -10%; width: 62vw; height: 120%; background: var(--ice-2); border-radius: 46% 54% 40% 60% / 52% 38% 62% 48%; opacity: .55; }
.hero-in { position: relative; width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; min-height: calc(100svh - var(--head)); padding-bottom: calc(var(--wave-h) * .9); }
.hero-copy { position: relative; z-index: 2; padding: 4vh 0; }
.hero h1 { font-size: clamp(2.5rem, .8rem + 4vw, 8.6rem); max-width: 14ch; line-height: .94; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.75rem); color: var(--muted); max-width: 32ch; margin: clamp(18px, 2vw, 40px) 0 clamp(24px, 2.6vw, 52px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.hero-plates { position: relative; aspect-ratio: 1 / .92; margin-right: calc(var(--gut) * -1 - 6vw); }
.plate { position: absolute; filter: drop-shadow(0 30px 34px rgba(12, 28, 94, .28)); }
.plate img { width: 100%; }
.plate-a { width: 74%; right: 4%; top: 2%; transform: rotate(-12deg); z-index: 1; }
.plate-b { width: 46%; left: 0; bottom: 0; transform: rotate(14deg); }
@media (prefers-reduced-motion: no-preference) {
	.js .plate-a { animation: settle-a 1.3s var(--ease) both; }
	.js .plate-b { animation: settle-b 1.3s .12s var(--ease) both; }
	@keyframes settle-a { from { opacity: 0; transform: translate(10%, -4%) rotate(4deg) scale(1.04); } }
	@keyframes settle-b { from { opacity: 0; transform: translate(-6%, 8%) rotate(30deg) scale(1.04); } }
}
@media (max-width: 860px) {
	.hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; }
	.hero-copy { padding: 0; }
	.hero-plates { margin: 10px calc(var(--gut) * -1) 0; aspect-ratio: 1 / .78; }
	.plate-a { width: 76%; right: -8%; top: 0; }
	.plate-b { width: 50%; left: -6%; bottom: 2%; }
}

/* ------------------------------------------------------------------ waves */
.wave { position: absolute; left: 0; top: -1px; width: 100%; height: var(--wave-h); display: block; pointer-events: none; }
.sea .wave .w1 { fill: var(--ice); }
.sea .wave .w2 { fill: var(--sky); }
.board .wave .w1 { fill: var(--navy-2); }
.board .wave .w2 { fill: var(--sky); }
.find .wave .w1 { fill: var(--foam); }
.find .wave .w2 { fill: var(--ice-2); }
.foot .wave .w1 { fill: var(--ice); }
.foot .wave .w2 { fill: var(--sky); }

/* ------------------------------------------------- favourites (deep sea) */
.sea { position: relative; background: var(--navy); color: var(--white); padding: calc(var(--wave-h) + clamp(32px, 4vw, 80px)) 0 clamp(40px, 4vw, 90px); text-align: center; overflow: hidden; }
.sea::after { content: ""; position: absolute; left: -10vw; right: -10vw; bottom: -30%; height: 70%; background: var(--navy-2); border-radius: 50% 50% 0 0 / 40% 60% 0 0; }
.sea-in { position: relative; z-index: 1; }
.sea-head { width: var(--wrap); margin: 0 auto clamp(28px, 3vw, 64px); display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; }
.sea h2 { color: var(--white); font-size: clamp(2.3rem, 1.2rem + 3.6vw, 7rem); }
.track-nav { display: flex; gap: 10px; flex: none; }
.tn { width: clamp(46px, 3.4vw, 64px); aspect-ratio: 1; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: var(--white); font-size: 1.1rem; cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ease), opacity .2s; }
.tn:hover:not(:disabled) { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.tn:disabled { opacity: .35; cursor: default; }
.track { list-style: none; margin: 0 0 clamp(28px, 3vw, 60px); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 460px); gap: clamp(18px, 2vw, 44px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: clamp(10px, 2vw, 30px) var(--gut) 24px; scrollbar-width: none; text-align: center; }
.track::-webkit-scrollbar { display: none; }
@media (min-width: 1700px) { .track { grid-auto-columns: clamp(300px, 15.5vw, 520px); } }
.dish { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.dish-plate { position: relative; z-index: 1; width: 82%; margin: 0 auto -30%; filter: drop-shadow(0 20px 22px rgba(4, 12, 46, .45)); transition: transform .6s var(--ease); }
.dish-plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dish-plate img.is-photo { border-radius: 50%; }
.dish-txt { flex: 1; background: var(--white); color: var(--text); padding: 36% clamp(20px, 1.8vw, 36px) clamp(26px, 2.4vw, 44px); border-radius: 64px 88px 70px 96px / 80px 64px 96px 72px; }
.dish:nth-child(even) .dish-txt { border-radius: 90px 62px 98px 68px / 66px 86px 70px 94px; }
.dish h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.4rem); margin-bottom: .35em; }
.dish p { color: var(--muted); margin: 0 auto; max-width: 26ch; }
.dish .price { color: var(--red); font-weight: 700; margin-top: .5em; }
.dish:hover { transform: translateY(-6px); }
.dish:hover .dish-plate { transform: rotate(8deg); }

/* --------------------------------------------------------------- the board */
.board { position: relative; background: var(--foam); padding: calc(var(--wave-h) + clamp(36px, 4vw, 90px)) 0 clamp(56px, 6vw, 130px); }
.board-in { width: var(--wrap); margin: 0 auto; }
.board h2 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 7rem); margin-bottom: clamp(28px, 3vw, 64px); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(28px, 3vw, 64px) clamp(24px, 3vw, 72px); }
.board-sec h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 2.3rem); color: var(--blue); padding-bottom: .5em; margin-bottom: .6em; border-bottom: 3px solid var(--ice-2); }
.board-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9em; }
.board-sec li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.dn { font-weight: 600; color: var(--navy); font-size: 1.08em; }
.dp { font-weight: 700; color: var(--red); }
.dl { grid-column: 1 / -1; color: var(--muted); font-size: .94em; line-height: 1.45; }

/* ------------------------------------------------------------------ story */
.story { background: var(--foam); padding: 0 0 clamp(64px, 7vw, 160px); }
.story-in { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.story-pic { grid-column: 1 / 10; grid-row: 1; position: relative; aspect-ratio: 16 / 9; clip-path: url(#blob-sea); background: var(--navy); }
.story-pic img { width: 100%; height: 100%; object-fit: cover; }
.story-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 28, 94, 0) 30%, rgba(12, 28, 94, .82) 100%); }
.story-pic h2 { position: absolute; z-index: 1; left: 7%; right: 10%; bottom: 13%; color: var(--white); font-size: clamp(2rem, .9rem + 3.4vw, 6.4rem); max-width: 14ch; }
.story-card { grid-column: 9 / 13; grid-row: 1; position: relative; z-index: 2; margin-bottom: -6%; background: var(--white); padding: clamp(28px, 2.8vw, 64px); border-radius: 56px 80px 60px 88px / 72px 58px 84px 64px; box-shadow: 0 30px 60px -30px rgba(12, 28, 94, .4); font-size: clamp(1.05rem, .95rem + .3vw, 1.4rem); }
.story-card p:last-child { margin: 0; }
.press a { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--ice-2); transition: color .2s, text-decoration-color .2s; }
.press a:hover { color: var(--navy); text-decoration-color: var(--red); }
@media (max-width: 1100px) {
	.story-in { grid-template-columns: 1fr; }
	.story-pic { grid-column: 1; aspect-ratio: 4 / 3.4; }
	.story-card { grid-column: 1; grid-row: 2; margin: -10% 4% 0; }
}

/* ---------------------------------------------------------------- find us */
.find { position: relative; background: var(--ice); padding: calc(var(--wave-h) + clamp(36px, 4vw, 90px)) 0 clamp(48px, 5vw, 110px); }
.find-in { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 140px); align-items: center; }
.find-map > a { display: block; clip-path: url(#blob-map); transition: transform .5s var(--ease); }
.find-map > a:hover { transform: scale(1.01); }
.find-map img { width: 100%; }
.credit { font-size: .8rem; color: var(--muted); margin: 10px 0 0 8%; }
.find h2 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 7rem); margin-bottom: .3em; }
.addr { font-size: clamp(1.25rem, 1rem + .9vw, 2.2rem); font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: clamp(20px, 2vw, 40px); }
.find-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(32px, 3vw, 64px); }
.find h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 2.3rem); color: var(--blue); margin-bottom: .5em; }
.hours { list-style: none; margin: 0; padding: 0; max-width: 34em; }
.hours li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: .55em .9em; border-radius: 999px; }
.hours .day { font-weight: 600; color: var(--navy); }
.hours .is-closed .time { color: var(--muted); }
.hours .is-today { background: var(--white); box-shadow: 0 10px 24px -16px rgba(12, 28, 94, .5); }
.hours .today { font-style: normal; font-weight: 700; color: var(--red); margin-left: .5em; font-size: .85em; }
@media (max-width: 960px) {
	.find-in { grid-template-columns: 1fr; }
	.find-info { order: -1; }
	.hours li { grid-template-columns: 6.6em 1fr; padding: .5em .7em; }
}

/* ----------------------------------------------------------------- footer */
.foot { position: relative; background: var(--navy); color: #dbe5f6; padding: calc(var(--wave-h) + clamp(28px, 3vw, 64px)) 0 28px; }
.foot-in { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 36px clamp(24px, 4vw, 96px); align-items: start; }
.foot .logo { width: clamp(170px, 12vw, 260px); }
.foot h2 { color: var(--white); font-size: 1.35rem; margin-bottom: .7em; }
.foot-col { display: grid; gap: .5em; justify-items: start; }
.foot a { color: var(--white); text-decoration: none; transition: transform .3s var(--ease), opacity .2s; display: inline-flex; gap: .5em; align-items: center; }
.foot a:hover { transform: translateY(-2px); }
.foot-phone { font: 400 clamp(1.5rem, 1.2rem + .8vw, 2.3rem)/1 "Lilita One", sans-serif; }
.legal { width: var(--wrap); margin: clamp(36px, 4vw, 80px) auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .9rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- phone bar */
.bar { display: none; }
@media (max-width: 860px) {
	.bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 28, 94, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.bar .btn { padding: .8em 1em; }
	body { padding-bottom: 72px; }
}

/* ------------------------------------------------------------ plain pages */
.page-head { background: var(--ice); padding: clamp(40px, 6vw, 120px) 0 clamp(36px, 4vw, 80px); }
.page-head-in { width: var(--wrap); margin: 0 auto; }
.page-head h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 6.4rem); margin-bottom: .4em; }
.page-head p { color: var(--muted); max-width: 46ch; font-size: 1.15em; }
.prose { width: var(--wrap); margin: 0 auto; padding: clamp(36px, 4vw, 80px) 0 clamp(56px, 6vw, 120px); max-width: 72ch; }
.prose h2 { font-size: 1.8rem; margin: 1.4em 0 .5em; }
