/* furyvsjoshua.com: domain acquisition landing page */

:root {
  --bg: #0b0b0c;
  --bg-raised: #131315;
  --ink: #f0ebe1;
  --ink-soft: #b9b3a8;
  --ink-mute: #7d786f;
  --line: rgba(240, 235, 225, 0.14);
  --line-strong: rgba(240, 235, 225, 0.32);
  --accent: #8f8474;
  --accent-soft: #c9bda8;
  --error: #ff8a80;

  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain: a very faint texture so the black reads as print, not screen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.nowrap { white-space: nowrap; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--accent);
}

/* ---------------------------------------------------------------- Hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.hero__bar a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__bar a:hover { color: var(--ink); border-color: var(--ink); }

.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

/* The domain itself is the visual */
.hero__domain {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 14.5vw, 12rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero__domain .tld { color: var(--ink-mute); }

.hero__rule {
  width: 100%;
  height: 1px;
  margin: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.25rem);
  background: var(--line);
  transform-origin: left;
}

.hero__lower {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero__lower {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Companion domain named inside running copy */
.domain-mention {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__copy {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  line-height: 1.55;
}

/* Summary of what is offered */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(2rem, 6vh, 3rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facts div {
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.facts dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------- Button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.button:hover { background: transparent; color: var(--ink); }
.button svg { transition: transform 0.3s var(--ease); }
.button:hover svg { transform: translateY(2px); }

.button[disabled],
.button[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* ------------------------------------------------------------- Enquiry */

.enquire {
  display: grid;
  gap: 3rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  outline: none;
}

@media (min-width: 900px) {
  .enquire {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
  .enquire__intro { position: sticky; top: 3rem; }
}

.enquire h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}

.enquire__panel {
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
}

/* ---------------------------------------------------------------- Form */

.form {
  display: grid;
  gap: 1.75rem 1.5rem;
}
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; min-width: 0; }

.field label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.optional { color: var(--ink-mute); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-body); /* ≥16px avoids iOS zoom */
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder { color: var(--ink-mute); opacity: 1; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--ink-soft); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--bg) inset;
  caret-color: var(--ink);
}

.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }

.field__error {
  min-height: 0;
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.875rem;
}
.field__error:empty { display: none; }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile:empty { display: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form__privacy { margin: 0; font-size: 0.8125rem; color: var(--ink-mute); }

.button--submit { min-width: 13rem; }

.form__status {
  display: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--error);
  background: rgba(255, 138, 128, 0.06);
  color: var(--ink);
  font-size: 0.9375rem;
}
.form__status.is-visible { display: block; }

/* Success state */
.success { outline: none; }
.success h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.1;
}
.success p:last-child { max-width: 32rem; margin: 0; color: var(--ink-soft); }

/* -------------------------------------------------------------- Footer */

.footer {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.75rem;
  line-height: 1.7;
}
.footer p { margin: 0; }
.footer__disclaimer { max-width: 52rem; }
.footer__legal { margin-top: 1rem !important; letter-spacing: 0.08em; }

/* ----------------------------------------------------------- Animation */

@media (prefers-reduced-motion: no-preference) {
  .hero__domain,
  .hero__lower,
  .facts { animation: fade 1.1s var(--ease) both; }
  .hero__lower { animation-delay: 0.3s; }
  .facts { animation-delay: 0.45s; }
  .hero__rule { animation: draw 1.4s var(--ease) 0.15s both; }

  .success:not([hidden]) { animation: fade 0.7s var(--ease) both; }

  @keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 480px) {
  .hero .button { width: 100%; padding-inline: 1.25rem; letter-spacing: 0.1em; white-space: nowrap; }
}

@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
}
