/* Nostis Art — site styles */
:root {
  --forest: #20382B;
  --cream: #F4F0E6;
  --olive-light: #C9C28E;
  --ink: #1C2620;
  --muted: #5A554C;
  --line: #CFC6B5;
  --sand: #EAE3D6;
  --field-bg: #FBF8F2;
  --field-line: #958C7C;
  --pad-x: clamp(20px, 5vw, 64px);
  --serif-display: 'Marcellus', 'Trajan Pro', Georgia, serif;
  --serif-text: 'Crimson Pro', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--forest); color: var(--cream); padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.container { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

.eyebrow {
  margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--forest);
}
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; color: var(--ink); margin: 0; }
h2 { margin-top: 20px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; text-wrap: balance; }
.lead { margin: 24px 0 0; max-width: 520px; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* ── Wordmark ─────────────────────────────── */
.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; text-decoration: none; color: var(--ink); }
.wordmark__name {
  font-family: var(--serif-display); font-size: 24px; line-height: 1;
  letter-spacing: 0.3em; margin-right: -0.3em;
}
.wordmark__sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wordmark__sub::before, .wordmark__sub::after { content: ''; flex-grow: 1; height: 1px; background: var(--forest); }
.wordmark__sub span { font-size: 9px; font-weight: 500; letter-spacing: 0.6em; padding-left: 0.6em; color: var(--forest); }
.wordmark--large .wordmark__name { font-size: 30px; }
.wordmark--large .wordmark__sub { gap: 10px; margin-top: 8px; }
.wordmark--large .wordmark__sub span { font-size: 10px; }

/* ── Header ───────────────────────────────── */
.site-header { display: flex; align-items: center; gap: 28px; padding-top: 24px; padding-bottom: 24px; }
.site-header__spacer { flex-grow: 1; }
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0;
}
.site-nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 880px) { .site-nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn--outline { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--cream); }
.btn--solid { min-height: 52px; padding: 0 30px; font-size: 13px; border: 0; background: var(--forest); color: var(--cream); }
.btn--solid:hover { background: #2B4A39; }
.btn--solid[disabled] { opacity: 0.6; cursor: wait; }

/* ── Hero ─────────────────────────────────── */
.hero {
  display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px); align-items: stretch;
  padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 112px);
}
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin-top: 24px; font-size: clamp(42px, 5.8vw, 84px); line-height: 1.06; text-wrap: balance; }
.hero__lead { margin: 28px 0 0; max-width: 470px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--forest);
}
.hero__place { display: flex; align-items: center; gap: 14px; margin-top: 48px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.hero__place::before { content: ''; width: 40px; height: 1px; background: var(--forest); }
.hero__figure { flex: 1 1 460px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__frame { height: clamp(380px, 50vw, 660px); overflow: hidden; background: #2E3A2A; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.caption { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.caption em { font-family: var(--serif-text); font-size: 14px; letter-spacing: 0; }

/* ── What we do ───────────────────────────── */
.offer { border-top: 1px solid var(--line); }
.offer__inner { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); align-items: flex-start; }
.offer__figure { flex: 1 1 340px; min-width: 0; max-width: 520px; margin: 0; align-self: center; display: flex; flex-direction: column; gap: 12px; }
.offer__text { flex: 1.2 1 420px; min-width: 0; }
.offer__list { list-style: none; margin: 40px 0 0; padding: 0; }
.offer__list li { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.offer__list li:last-child { border-bottom: 1px solid var(--line); }
.offer__list h3 { font-size: 21px; line-height: 1.25; }
.offer__list p { margin: 0; color: var(--muted); text-wrap: pretty; }
.trade-link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--forest); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.trade-link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ── Process ──────────────────────────────── */
.process { background: var(--sand); }
.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px;
}
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid #B9B09F; }
.steps__num { font-family: var(--serif-text); font-style: italic; font-size: 44px; line-height: 1; color: var(--forest); }
.steps h3 { margin-top: 8px; font-size: 20px; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* ── Styles ───────────────────────────────── */
.styles__head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.styles__head > div { flex: 1 1 420px; min-width: 0; }
.styles__head > p { flex: 1 1 320px; margin: 0; max-width: 420px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 36px 24px; margin-top: 56px;
}
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery__mat { position: relative; aspect-ratio: 4 / 5; background: var(--sand); }
.gallery__mat img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 78%; max-height: 78%;
  box-shadow: 0 1px 4px rgba(28, 38, 32, 0.22);
}
.gallery figcaption { display: flex; flex-direction: column; gap: 4px; }
.gallery__style { font-family: var(--serif-text); font-style: italic; font-size: 20px; line-height: 1.3; }
.gallery__credit { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ── Request ──────────────────────────────── */
.request { background: var(--forest); color: var(--cream); }
.request__inner { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); align-items: flex-start; }
.request__intro { flex: 1 1 320px; min-width: 0; }
.request .eyebrow { color: var(--olive-light); }
.request h2 { color: var(--cream); font-size: clamp(34px, 4vw, 54px); }
.request__intro > p:not(.eyebrow) { margin: 24px 0 0; max-width: 400px; font-size: 17px; line-height: 1.65; color: #D9D3C6; }
.request__contact { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(244, 240, 230, 0.25); display: flex; flex-direction: column; gap: 8px; }
.request__contact span { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-light); }
.request__contact a { font-size: 18px; color: var(--cream); text-underline-offset: 5px; text-decoration-color: var(--olive-light); }
.request__panel { flex: 1.6 1 500px; min-width: 0; background: var(--cream); color: var(--ink); padding: clamp(24px, 4vw, 48px); }

.form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .field label {
  padding: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.form legend { margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--field-line); background: transparent; color: var(--ink); font-size: 15px;
}
.pill input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.pill input[type="checkbox"]:checked + span::before { content: '✓'; margin-right: 8px; }
.pill input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 3px; }
.pill:hover span { border-color: var(--forest); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: 0; background: var(--field-bg);
  font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }

.upload { position: relative; }
.upload label {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 16px 20px;
  border: 1px dashed var(--field-line); background: var(--field-bg); cursor: pointer;
}
.upload label:hover { border-color: var(--forest); }
.upload__title { font-size: 16px; }
.upload__title small { font-size: 16px; color: var(--muted); }
.upload__hint { display: block; font-size: 13px; color: var(--muted); }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload input[type="file"]:focus-visible + label { outline: 2px solid var(--forest); outline-offset: 3px; }
.upload__list { margin: 10px 0 0; font-size: 14px; color: var(--forest); min-height: 1em; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__error { margin: 0; padding: 14px 16px; background: #F6E3DC; color: #6B2A17; font-size: 15px; }
.form__error a { color: #6B2A17; }
.hidden { display: none !important; }

/* ── Footer ───────────────────────────────── */
.site-footer { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tagline { font-family: var(--serif-text); font-style: italic; font-size: 22px; color: var(--forest); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 6px; }
.site-footer__cols span.label { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* ── Simple pages (thank you, 404) ───────── */
.simple { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 96px; }
.simple h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.08; margin-top: 20px; }
.simple p { max-width: 520px; font-size: 17px; color: var(--muted); margin: 24px 0 0; }
.simple .btn { margin-top: 40px; align-self: flex-start; }
