/* M Ho Studios, Design's round 6b (2026-10-13i). Colours from the logo; Hanken Grotesk, self-hosted (OFL, fonts/OFL.txt). */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin-700-normal.woff2) format('woff2'); }

:root {
  --paper: #F4EFE6;
  --ink: #24201B;
  --muted: #5E564C;
  --card-ink: #4A433B;
  --clay: #B5603A;
  --link: #9A4E2C;
  --card: #FBF8F3;
  --card-edge: #E2D9CB;
  --hairline: #DDD3C3;
  --panel: #E7DFD2;
  --font: 'Hanken Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.hero a:focus-visible { outline-color: var(--paper); }
picture { display: contents; }
img { max-width: 100%; }
h1, h2, h3, .contact-lead { font-weight: 700; letter-spacing: -0.04em; }

/* The reference sizes everything against the page's width, as container units. */
.page { container-type: inline-size; overflow-x: clip; }
.wrap { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4.5cqi, 56px); }

/* Hero */
.hero { position: relative; min-height: clamp(600px, 64cqi, 820px); background: #3A2A26; color: var(--paper); display: flex; flex-direction: column; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.42) 0%, rgba(20,14,10,0) 24%, rgba(20,14,10,0) 46%, rgba(20,14,10,.78) 100%); }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; }
.hero-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(16px, 2.4cqi, 28px) 0; }
.logo-link { display: flex; align-items: center; min-height: 44px; }
.logo { height: clamp(36px, 3.6cqi, 44px); width: auto; display: block; }
.say-hi { color: var(--paper); min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 600; text-decoration: none; }
.say-hi:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.hero-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-bottom: clamp(32px, 5cqi, 64px); }
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(26px, 3.3cqi, 42px); line-height: 1.12; text-wrap: pretty; }
.hero-caption { font-size: 14px; font-weight: 500; color: #EDE4D6; }

/* Section headings */
.heading { display: flex; flex-direction: column; gap: 8px; }
.rule { width: 56px; height: 4px; background: var(--clay); }
.heading h2 { margin: 0; font-size: clamp(30px, 3.6cqi, 44px); }
.muted { margin: 0; font-size: 15px; color: var(--muted); }

/* The apps */
.apps { display: flex; flex-direction: column; gap: clamp(48px, 7cqi, 88px); padding: clamp(64px, 9cqi, 120px) 0 clamp(56px, 8cqi, 104px); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 5cqi, 64px); align-items: center; }
.feature-panel { display: flex; justify-content: center; align-items: center; padding: clamp(28px, 4cqi, 48px) 16px; background: var(--panel); border-radius: 20px; }
.feature-phone { width: clamp(220px, 24cqi, 300px); height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(60,40,20,.22)); }
.feature-text { display: flex; flex-direction: column; gap: 16px; }
.feature-title { display: flex; align-items: center; gap: 12px; }
.feature-mark { width: 44px; height: 44px; object-fit: contain; }
.feature-title h3 { margin: 0; font-size: clamp(30px, 3.8cqi, 46px); line-height: 1; }
.feature-line { margin: 0; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.feature-link { align-self: flex-start; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4cqi, 28px); }
.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6cqi, 30px); background: var(--card); border: 1px solid var(--card-edge); border-radius: 18px; }
.card h3 { margin: 0; font-size: 23px; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--card-ink); text-wrap: pretty; }
.card a { margin-top: auto; align-self: flex-start; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }

/* Pictures: justified rows, each photo at its own ratio */
.pictures { display: flex; flex-direction: column; gap: 24px; padding-bottom: clamp(56px, 8cqi, 104px); }
.gallery { display: flex; flex-wrap: wrap; gap: clamp(8px, 1.2cqi, 14px); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: 13px; color: var(--muted); }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 14px; padding: clamp(56px, 8cqi, 104px) 0; border-top: 1px solid var(--hairline); }
.contact-lead { margin: 0; font-size: clamp(28px, 3.6cqi, 44px); line-height: 1.12; text-wrap: pretty; }
.contact-mail { align-self: flex-start; font-size: clamp(22px, 2.6cqi, 28px); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; overflow-wrap: anywhere; min-height: 44px; display: flex; align-items: center; }
.contact .muted a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 24px 0 32px; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 1.55; color: var(--muted); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-logo { height: 32px; width: auto; display: block; }
.footer-lines { display: flex; flex-direction: column; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.footer-nav a:hover { color: var(--ink); }
