/**
 * Doorway Interiors — shared base styles.
 *
 * Tailwind (Play CDN) handles layout utilities; this file owns the things
 * that must be consistent everywhere and are tedious as utility strings:
 * the type scale, the section label, form fields, and the global "no
 * rounded corners, no shadows" rule that keeps the site reading as
 * millwork rather than as a SaaS dashboard.
 */

:root {
  --ink: #1c1a17;
  --ink-soft: #57524a;
  --paper: #faf9f7;
  --paper-warm: #f2efea;
  --accent: #2d5a27;
  --line: #ddd8d0;
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Type scale -------------------------------------------------------
   The point of the restyle: real distance between the biggest and the
   smallest thing on the page. Display sizes are fluid so the hero stays
   dramatic on a laptop without overflowing a phone. */

.t-hero {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.t-section {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.t-sub {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}

/* Small wide-tracked label. Used sparingly — a couple per page, never as
   a kicker over every single heading (that was the old template tell). */
.t-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.t-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---- Flat by default --------------------------------------------------
   Square corners and no drop shadows, everywhere. Anything that needs to
   be set apart is separated by a hairline rule or by space, not by a
   floating white box. */

img, video, iframe, input, textarea, select, button, a {
  border-radius: 0;
}

/* ---- Links and buttons ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1e3e1a; }

.btn-ghost { border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* On a photo, the ghost button is white-on-image. */
.on-photo .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-underline {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.18s;
}
.link-underline:hover { text-decoration-color: currentColor; }

/* ---- Form fields ------------------------------------------------------
   Underline-only inputs. A boxed input with a rounded border and a focus
   ring is the most template-looking element in any contact form. */

.field {
  width: 100%;
  background: var(--paper-warm);
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.18s, background-color 0.18s;
}
.field:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
}
.field::placeholder { color: #a8a099; }

textarea.field { resize: vertical; min-height: 6.5rem; }

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

/* Consent checkboxes stay square and quiet. */
.check {
  appearance: none;
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.28rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.check:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
  background-size: 100%;
}
.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Long-form legal pages ------------------------------------------- */

.legal h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 3rem 0 0.85rem;
}
.legal h3 { font-size: 1rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal ul li { margin-bottom: 0.4rem; }
