/* Aura Apps — auraapps.co.uk
   Built to the Aura brand identity specification v1.0 (July 2026).
   Static, framework-free, self-hosted fonts, no third-party requests. */

/* ---- Fonts (self-hosted, OFL) ---- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  --ink-900: #0E0D0B;            /* background */
  --ink-800: #161411;            /* surface */
  --ink-700: #2A2620;            /* line */
  --bone-100: #F2EFE9;           /* text primary */
  --bone-400: #A89F92;           /* text secondary */
  --bone-600: #6E675C;           /* text faint — large/decorative only */
  --corona-500: #E8AE62;         /* accent */
  --corona-grad: linear-gradient(135deg, #F6D998, #E8AE62 55%, #CF7A4E);
  --ink-on-accent: #1A130C;
  --accent-line: rgba(232, 174, 98, 0.4);
  --sans: "Instrument Sans", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);  /* "settle" */
  --max: 1080px;
  --max-doc: 680px;
  --gutter: 24px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--corona-500);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: #F6D998; }
::selection { background: rgba(232, 174, 98, 0.35); }
:focus-visible {
  outline: 2px solid var(--corona-500);
  outline-offset: 3px;
  border-radius: 2px;
}
img { max-width: 100%; }
em.glow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.grad-text {
  background: linear-gradient(95deg, #F6D998, #E8AE62 55%, #CF7A4E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  color: var(--bone-100);
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---- Type scale ---- */
.label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-400);
}
.label.faint { color: var(--bone-600); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.lede {
  color: var(--bone-400);
  text-wrap: pretty;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 13, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-700);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
html.js .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
html.js .site-header.scrolled {
  background: rgba(14, 13, 11, 0.8);
  border-bottom-color: var(--ink-700);
}
.site-header .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--bone-100);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--bone-100); }
.wordmark img { width: 26px; height: 26px; display: block; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: var(--bone-400); font-size: 15px; }
.site-nav a:hover { color: var(--bone-100); }
@media (max-width: 480px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(88px, 14vw, 160px) var(--gutter) clamp(80px, 12vw, 140px);
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 50% 8%, rgba(232, 174, 98, 0.14), transparent 65%),
    radial-gradient(30rem 22rem at 68% 30%, rgba(207, 122, 78, 0.08), transparent 70%);
  animation: aura-drift 14s ease-in-out infinite alternate;
}
@keyframes aura-drift {
  from { transform: translate(-2%, 0) scale(1); opacity: 0.85; }
  to   { transform: translate(2%, 3%) scale(1.06); opacity: 1; }
}
.hero-mark {
  position: absolute;
  left: 50%;
  top: 8%;
  width: clamp(340px, 52vw, 640px);
  transform: translateX(-50%);
  opacity: 0.05;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.hero .label { margin-bottom: 26px; }
.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(42px, 7.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero .lede {
  max-width: 46ch;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}
.cta-row {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 16px;
  background: linear-gradient(120deg, #E8AE62, #CF7A4E);
  color: var(--ink-on-accent);
  box-shadow: 0 0 28px rgba(232, 174, 98, 0.28);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary:hover {
  color: var(--ink-on-accent);
  box-shadow: 0 0 40px rgba(232, 174, 98, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  color: var(--bone-100);
  border: 1px solid var(--ink-700);
  transition: border-color 0.3s var(--ease);
}
.btn-ghost:hover {
  color: var(--bone-100);
  border-color: var(--bone-600);
}

/* ---- Sections ---- */
.section {
  border-top: 1px solid var(--ink-700);
  padding: clamp(64px, 9vw, 110px) var(--gutter);
}
.section .wrap { padding: 0; }
.section h2 { margin-bottom: 16px; }
.section-lede {
  max-width: 58ch;
  margin: 0 0 48px;
  color: var(--bone-400);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 18px;
  padding: 30px 28px;
  transition: border-color 0.3s var(--ease);
}
.card:hover { border-color: var(--accent-line); }
.card-index {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--corona-500);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child {
  margin: 0;
  color: var(--bone-400);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---- Workshop (App № 001) ---- */
.workshop {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: var(--ink-800);
}
.workshop-glow {
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(232, 174, 98, 0.1), transparent 70%);
  pointer-events: none;
}
.workshop-row {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.workshop-row > img { width: clamp(72px, 10vw, 104px); flex: none; }
.workshop-copy { flex: 1 1 320px; }
.workshop-copy .card-index { margin-bottom: 10px; font-size: 19px; }
.workshop-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.workshop-copy p:last-child {
  margin: 0;
  max-width: 52ch;
  color: var(--bone-400);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---- Contact ---- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 14px; }
.contact .lede {
  max-width: 46ch;
  margin: 0 auto 30px;
}
.contact-email {
  display: inline-block;
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bone-100);
  border-bottom: 2px solid rgba(232, 174, 98, 0.6);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-email:hover {
  color: var(--corona-500);
  border-bottom-color: var(--corona-500);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 48px var(--gutter) 56px;
}
.site-footer .wrap {
  display: grid;
  gap: 22px;
  padding: 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-row > img { height: 30px; opacity: 0.9; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--bone-400); font-size: 14px; }
.footer-nav a:hover { color: var(--bone-100); }
.legal {
  margin: 0;
  color: var(--bone-600);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 70ch;
  text-wrap: pretty;
}

/* ---- Long-form document (privacy) ---- */
.doc {
  max-width: calc(var(--max-doc) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}
.doc h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.doc .updated {
  margin: 0 0 44px;
  color: var(--bone-600);
  font-size: 14.5px;
}
.doc h2 {
  margin: 40px 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.doc p, .doc li {
  color: var(--bone-400);
  font-size: 16.5px;
  line-height: 1.7;
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc strong { color: var(--bone-100); font-weight: 600; }

/* ---- 404 ---- */
.error-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px var(--gutter);
}
.error-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 110%;
  pointer-events: none;
  background: radial-gradient(40rem 24rem at 50% 10%, rgba(232, 174, 98, 0.12), transparent 65%);
}
.error-inner { position: relative; }
.error-inner > img {
  width: 72px;
  margin: 0 auto 26px;
  display: block;
  opacity: 0.9;
}
.error-code {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 12vw, 104px);
  line-height: 1;
}
.error-page h1 {
  margin-bottom: 8px;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.015em;
}
.error-page .lede { margin: 0 0 32px; font-size: 16px; }

/* ---- Scroll reveal (progressive enhancement; static-first) ---- */
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.js-motion .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion: the dish is complete without it ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; opacity: 1; }
  html.js-motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
}
