@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-roman-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-italic-400.woff2') format('woff2');
}

:root {
  --paper: #F7F2E9;
  --panel: #FDFAF4;
  --ink: #1C2942;
  --muted: #57617B;
  --gold: #A87F24;
  --line: rgba(28, 41, 66, 0.16);
}

:root[data-theme="dark"] {
  --paper: #131C31;
  --panel: #1A2440;
  --ink: #EFE8D9;
  --muted: #A6AEC4;
  --gold: #D2A64B;
  --line: rgba(239, 232, 217, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131C31;
    --panel: #1A2440;
    --ink: #EFE8D9;
    --muted: #A6AEC4;
    --gold: #D2A64B;
    --line: rgba(239, 232, 217, 0.16);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--gold);
}

a:hover {
  text-decoration: underline;
}

.eyebrow {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-size: 0.75rem;
}

.caption, .muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo img.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img.logo-light { display: none; }
  :root:not([data-theme="light"]) .logo img.logo-dark { display: block; }
}

:root[data-theme="dark"] .logo img.logo-light { display: none; }
:root[data-theme="dark"] .logo img.logo-dark { display: block; }

.btn {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85em 1.6em;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero .wordmark {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.hero h1 {
  max-width: 20ch;
}

.hero p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Hero photo: rounded, with sides faded to transparent so it blends into
   whichever theme background sits behind it. */
.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  /* Fade all four edges to transparent so the photo blends into any theme
     background. Two gradients (horizontal + vertical) intersected keep only
     the middle opaque. */
  --hero-fade: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: var(--hero-fade);
  mask-image: var(--hero-fade);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 760px) {
  .hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero h1,
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    order: -1;
  }
}

.stitch-rule {
  border: none;
  border-top: 2px dashed var(--gold);
  width: 100%;
  margin: 3rem auto;
}

.section {
  padding: 3rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.5em;
}

/* Quiet button: outline variant for secondary actions (e.g. Get directions) */
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Recent work gallery */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-item {
  margin: 0;
}

.work-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.work-item figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.6rem;
}

/* Visit us */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.visit-photo {
  margin: 0;
}

.visit-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.visit-address {
  font-style: normal;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.visit-details .btn-quiet {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

.cta {
  text-align: center;
  padding: 4rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-address {
  font-style: normal;
}

/* Enquiry form */
.form-page {
  padding: 3rem 0 5rem;
}

.form-page h1 {
  margin-bottom: 0.3em;
}

.form-page .intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

form.enquiry {
  max-width: 640px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}

legend {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  padding: 0 0.5em;
}

.field {
  margin-bottom: 1.25rem;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35em;
}

.field .hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.3em;
}

.field .errors {
  color: #B3261E;
  font-size: 0.875rem;
  margin-top: 0.3em;
}

:root[data-theme="dark"] .field .errors {
  color: #F2B8B5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  padding: 0.6em 0.75em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}

textarea {
  min-height: 6em;
  resize: vertical;
}

.radio-group label,
.checkbox-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.4em;
}

/* File upload rows — one file plus its own dimensions & placement */
.file-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.file-row-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.file-row-file input[type="file"] {
  flex: 1;
  min-width: 0;
}

.file-row-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.file-row-meta label {
  font-weight: 400;
  margin-bottom: 0;
}

.file-row-meta label span {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35em;
}

.file-row-meta .placement-other {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .file-row-meta {
    grid-template-columns: 1fr;
  }
}

.file-remove {
  flex: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.5em 0.9em;
  cursor: pointer;
}

.file-remove:hover {
  color: #B3261E;
  border-color: #B3261E;
}

:root[data-theme="dark"] .file-remove:hover {
  color: #F2B8B5;
  border-color: #F2B8B5;
}

.file-add {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 0.55em 1.1em;
  margin-top: 0.2rem;
  cursor: pointer;
}

.file-add span {
  font-weight: 600;
  margin-right: 0.15em;
}

.file-add:hover:not(:disabled) {
  background: var(--panel);
  border-style: solid;
}

.file-add:disabled {
  color: var(--muted);
  border-style: solid;
  cursor: not-allowed;
}

.file-add:focus-visible,
.file-remove:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Honeypot field — hidden from real customers, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Progressive disclosure: both branches are visible by default so the
   form works fully with JavaScript off; enquiry.js adds .js-hidden to
   the branch that doesn't match the selected supply mode. */
.branch.js-hidden {
  display: none;
}

.thanks {
  text-align: center;
  padding: 5rem 0;
}
