/* ==========================================================================
   Scotty Inu — scotty.css
   Bone / ink / sage design system.

   Replaces the previous neon-on-black theme. The reference point is the
   client's existing site: warm bone paper, black type, enormous negative
   space. This is not a copy of it — it keeps that calm, printed feel and
   adds structure, rhythm and a single muted accent so the site can carry
   more than two links.
   ========================================================================== */

/* ---------- Fonts ----------------------------------------------------------
   Anton is self-hosted (already in the project) and does the heavy display
   work. Body copy uses a high-quality system serif stack — it renders
   instantly, costs nothing to download, and echoes the serif body type on
   the reference site. Inter handles UI labels and form text.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* ---- Paper ---- */
  --paper:    #f2ebe5;   /* base surface  */
  --paper-2:  #eae1d9;   /* recessed / alternating band */
  --paper-3:  #fbf7f3;   /* raised card */
  --paper-4:  #e3d9cf;   /* deepest bone, used for wells */

  /* ---- Ink ---- */
  --ink:      #16130f;   /* headings, body            15.7:1 on paper */
  --ink-2:    #3a342d;   /* secondary body            10.4:1 */
  --ink-3:    #665d54;   /* muted meta                 4.9:1 */
  --ink-inv:  #f4efe9;   /* text on ink surfaces */

  /* ---- Lines ---- */
  --line:     rgba(22,19,15,.14);
  --line-2:   rgba(22,19,15,.26);
  --line-3:   rgba(22,19,15,.55);

  /* ---- Sage — the single accent ----
     Muted eucalyptus. Deliberately desaturated so it sits under the
     artwork rather than competing with it. --sage-ink is the text-safe
     step (6.5:1); --sage itself is for rules, focus rings and fills. */
  --sage:       #6e7f6b;
  --sage-ink:   #4a5745;
  --sage-deep:  #3f4c3b;
  --sage-wash:  #e6eae0;   /* form field fill — replaces the brown */
  --sage-wash-2:#dde3d5;   /* field hover */
  --sage-tint:  rgba(110,127,107,.13);
  --sage-ring:  rgba(110,127,107,.38);

  /* ---- Type ---- */
  --ff-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --ff-serif:   'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
                Georgia, 'Times New Roman', serif;
  --ff-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --f-mega:  clamp(3.2rem, 13vw, 11rem);
  --f-h1:    clamp(2.5rem, 7.5vw, 6rem);
  --f-h2:    clamp(1.9rem, 4.6vw, 3.6rem);
  --f-h3:    clamp(1.15rem, 2vw, 1.6rem);
  --f-lead:  clamp(1.08rem, 1.5vw, 1.3rem);
  --f-body:  1.0625rem;
  --f-sm:    .9rem;
  --f-xs:    .75rem;

  /* ---- Layout ---- */
  --wrap:     1240px;
  --wrap-nar: 720px;
  --gut:      clamp(1.25rem, 5vw, 3.5rem);
  --sec-y:    clamp(4rem, 10vw, 8.5rem);

  --r-sm: 4px; --r-md: 10px; --r-lg: 18px; --r-pill: 999px;

  /* ---- Motion ---- */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .16s; --t-mid: .34s; --t-slow: .7s;

  --skew: -7deg;   /* the forward lean borrowed from the logo */
}

/* ---------- Reset ---------- */
*, *::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(--ff-serif);
  font-size: var(--f-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paper grain. Two layers: a fine fibre noise and a very slow vignette, so
   large flat areas of bone read as a sheet of paper instead of a colour
   swatch. Both are drawn in CSS so there is no image to download and no
   `file://` restriction to trip over. */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(22,19,15,.030) 0 1px, transparent 1.4px),
    radial-gradient(circle at 71% 58%, rgba(22,19,15,.024) 0 1px, transparent 1.4px),
    radial-gradient(circle at 43% 86%, rgba(22,19,15,.020) 0 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px, 13px 13px;
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(130% 100% at 50% 0%,
              transparent 55%, rgba(88,72,58,.10) 100%);
}
body > * { position: relative; z-index: 2; }

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

::selection { background: var(--sage-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sage-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

/* The signature move: display type leans forward like the wordmark. Applied
   with a transform rather than a synthetic italic so the letterforms stay
   crisp and the optical weight does not change. */
.lean { display: inline-block; transform: skewX(var(--skew)); transform-origin: 0 100%; }

.mega { font-size: var(--f-mega); }
.h1   { font-size: var(--f-h1); }
.h2   { font-size: var(--f-h2); }
.h3   { font-size: var(--f-h3); letter-spacing: .02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--f-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

.serif-it { font-style: italic; }

/* Small letterspaced label — the "FIND MY WORK ON" register */
.eyebrow {
  font-family: var(--ff-ui);
  font-size: var(--f-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.eyebrow--sage { color: var(--sage-ink); }

a { color: inherit; }

/* Body links get a sage rule that grows on hover rather than a colour change */
.link {
  text-decoration: none;
  background-image: linear-gradient(var(--sage), var(--sage));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--t-mid) var(--ease);
  padding-bottom: 1px;
}
.link:hover { background-size: 100% 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--nar { max-width: var(--wrap-nar); }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--ink-inv); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--ink-inv); }
.section--ink .lead { color: rgba(244,239,233,.76); }
.section--ink .eyebrow { color: rgba(244,239,233,.58); }

/* A hairline rule with a small sage tick — used instead of heavy dividers */
.rule {
  border: 0; height: 1px; background: var(--line);
  margin: 0; position: relative;
}
.rule::after {
  content: ''; position: absolute; left: 0; top: -1px;
  width: 56px; height: 3px; background: var(--sage);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-ui);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--ink-inv);
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  box-shadow: 0 1px 0 0 rgba(22,19,15,.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -8px rgba(22,19,15,.55); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink); background: var(--sage-tint); }

.btn--sage { background: var(--sage-deep); border-color: var(--sage-deep); color: #f4f6f1; }
.btn--sage:hover { background: var(--sage-ink); border-color: var(--sage-ink); }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: .45; pointer-events: none;
}

/* Oversized display link — the BOOKING / SHOP register from the reference,
   rebuilt with a sage underline that wipes in from the left. */
.biglink {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  transform: skewX(var(--skew));
  position: relative;
  line-height: 1;
  padding-bottom: .12em;
  transition: color var(--t-mid) var(--ease);
}
.biglink::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 5px; width: 100%; background: var(--sage);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease-out);
}
.biglink:hover::after, .biglink:focus-visible::after { transform: scaleX(1); }

/* ---------- Forms -----------------------------------------------------------
   The client disliked the dusty-brown pill fields on the old form. These are
   squared-off wells in a pale sage wash: quieter against the bone, and the
   focus state is a real state change (border + ring + lift) rather than a
   colour the eye has to hunt for.
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.5rem; }

.label {
  display: block;
  font-family: var(--ff-ui);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .5rem;
}
.label .opt {
  font-weight: 500; letter-spacing: .04em; text-transform: none;
  color: var(--ink-3); font-size: .82rem; margin-left: .5rem;
}
.label .req { color: var(--sage-ink); margin-left: .15rem; }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--ff-ui);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sage-wash);
  border: 1px solid rgba(22,19,15,.16);
  border-radius: var(--r-sm);
  padding: .95rem 1.05rem;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(22,19,15,.42); }
.input:hover, .textarea:hover, .select:hover { background: var(--sage-wash-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  background: var(--paper-3);
  border-color: var(--sage-ink);
  box-shadow: 0 0 0 3px var(--sage-ring);
}
.textarea { min-height: 8.5rem; resize: vertical; }

.select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 1rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.field--err .input, .field--err .textarea, .field--err .select {
  border-color: #9a3b2e;
  box-shadow: 0 0 0 3px rgba(154,59,46,.18);
}
.err {
  display: none;
  font-family: var(--ff-ui); font-size: .8rem; color: #8a3527;
  margin-top: .4rem;
}
.field--err .err { display: block; }

/* Choice chips — used instead of radio pills */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  font-family: var(--ff-ui); font-size: .85rem; font-weight: 600;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: transparent; color: var(--ink-2);
}
.chip:hover span { border-color: var(--ink); background: var(--sage-tint); }
.chip input:checked + span {
  background: var(--ink); border-color: var(--ink); color: var(--ink-inv);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--sage-ring); }

/* Checkbox rows */
.check { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none;
  flex: 0 0 auto;
  width: 1.3rem; height: 1.3rem; margin: .15rem 0 0;
  border: 1.5px solid var(--line-3); border-radius: 3px;
  background: var(--paper-3); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.check input:checked {
  background: var(--sage-deep); border-color: var(--sage-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4f6f1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
  background-size: 100%; background-position: center; background-repeat: no-repeat;
}
.check input:focus-visible { box-shadow: 0 0 0 3px var(--sage-ring); }
.check span { font-family: var(--ff-ui); font-size: .92rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Upload well ---------- */
/* This is a <label>, so it needs an explicit block display — and its own
   positioning context, or the visually-hidden file input escapes it. */
.drop {
  display: block;
  position: relative;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--sage-wash);
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
}
.drop__t, .drop__s { display: block; }
.drop__s { max-width: 44ch; margin-inline: auto; }
.drop:hover, .drop.is-over {
  border-color: var(--sage-ink);
  background: var(--sage-wash-2);
}
.drop.is-over { transform: scale(1.008); }
.drop input[type='file'] { position: absolute; opacity: 0; width: 0; height: 0; }
.drop__icon { margin: 0 auto .85rem; width: 34px; height: 34px; color: var(--sage-ink); }
.drop__t {
  font-family: var(--ff-ui); font-weight: 700; font-size: .95rem;
  color: var(--ink); margin-bottom: .3rem;
}
.drop__s { font-family: var(--ff-ui); font-size: .82rem; color: var(--ink-3); }

.thumbs {
  display: grid; gap: .75rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.thumb {
  position: relative; aspect-ratio: 1; border-radius: var(--r-sm);
  overflow: hidden; background: var(--paper-4);
  border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(22,19,15,.82); color: #fff;
  font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
.thumb button:hover { background: var(--ink); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease-out) var(--rd, 0ms),
              transform .7s var(--ease-out) var(--rd, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp, 1.25rem); }
.muted { color: var(--ink-3); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
