:root {
  color-scheme: light;
  --ink: #102925;
  --ink-soft: #36504b;
  --paper: #f4f0e6;
  --paper-deep: #e8e1d2;
  --accent: #d56842;
  --line: rgba(16, 41, 37, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
}

main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 240, 230, 0.96), rgba(232, 225, 210, 0.84)),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 46px,
      rgba(16, 41, 37, 0.06) 47px,
      transparent 48px
    );
}

.hero::after {
  content: "";
  position: absolute;
  width: min(55vw, 700px);
  aspect-ratio: 1;
  right: -32%;
  bottom: -26%;
  border: clamp(34px, 6vw, 84px) solid rgba(213, 104, 66, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.brand,
.hero-copy,
.site-meta {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.7rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-copy {
  max-width: 760px;
  padding: clamp(5rem, 13vh, 10rem) 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.8vw, 7.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.intro {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.owner {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.owner p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.rule {
  width: 2.8rem;
  height: 1px;
  background: var(--accent);
}

.domain {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

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

.analytics-settings {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.analytics-settings:hover {
  transform: none;
  background: transparent;
  color: var(--ink);
}

.contact {
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 6rem);
  display: grid;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.contact-inner {
  width: min(100%, 640px);
  margin-inline: auto;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.2vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact-intro {
  margin-bottom: 2.5rem;
  color: rgba(244, 240, 230, 0.72);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

form,
label {
  display: grid;
  gap: 0.55rem;
}

form {
  gap: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label > span {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

small {
  margin-left: 0.35rem;
  color: rgba(244, 240, 230, 0.45);
  font-size: inherit;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 230, 0.3);
  border-radius: 0;
  padding: 0.7rem 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

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

.form-footer {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

button {
  min-width: 10.5rem;
  border: 0;
  border-radius: 100px;
  padding: 0.95rem 1.3rem;
  display: inline-flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

button:hover {
  transform: translateY(-2px);
  background: #e0764f;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

#form-status {
  margin: 0;
  color: rgba(244, 240, 230, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}

.analytics-consent {
  position: fixed;
  z-index: 10;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(30rem, calc(100vw - 2rem));
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 1rem;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.26);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2 {
  margin-bottom: 0.45rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
}

.analytics-consent p {
  margin: 0;
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.84rem;
  line-height: 1.55;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.analytics-consent-actions button {
  min-width: 0;
  padding: 0.72rem 1rem;
  font-size: 0.78rem;
}

.analytics-consent-actions .button-secondary {
  border: 1px solid rgba(244, 240, 230, 0.32);
  background: transparent;
  color: var(--paper);
}

.analytics-consent-actions .button-secondary:hover {
  background: rgba(244, 240, 230, 0.08);
}

@media (max-width: 900px) {
  main {
    display: block;
  }

  .hero,
  .contact {
    min-height: auto;
  }

  .hero {
    min-height: 88vh;
  }
}

@media (max-width: 560px) {
  .brand-name {
    max-width: 18ch;
    line-height: 1.35;
  }

  .hero-copy {
    padding-block: 5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
