:root {
  --bg: #f3f0ea;
  --paper: #fbfaf6;
  --ink: #161616;
  --muted: #6f6a61;
  --line: rgba(22, 22, 22, 0.14);
  --accent: #8f1f1d;
  --accent-dark: #391111;
  --horse: #7a5b36;
  --car: #1d3248;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(243, 240, 234, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.06em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 600;
}

.mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 28px 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 690px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(4.4rem, 10vw, 10.8rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 560px;
  color: #393530;
  font-size: clamp(1.03rem, 1.35vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-image {
  min-height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
    url("Images/758C3A62-09D7-47EA-89B1-140FCD0350C0.jpg") center/cover;
}

.hero-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-card .tag {
  margin-bottom: 12px;
}

.hero-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ticker {
  margin: 26px 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  padding: 14px 0;
  animation: ticker 24s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-weight: 500;
}

.section-head p {
  max-width: 410px;
  color: var(--muted);
  line-height: 1.55;
}

.editor-note {
  margin: 20px 0 18px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.62);
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.editor-note strong {
  color: var(--ink);
}

.editor-note code {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 7px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.article {
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.article.wide {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.article-image {
  min-height: 310px;
  background-size: cover;
  background-position: center;
}

.wip-image {
  min-height: 310px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22, 22, 22, 0.08) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(135deg, transparent 75%, rgba(22, 22, 22, 0.08) 75%) 0 0 / 24px 24px,
    #ded8cc;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-align: center;
}

.article-content {
  padding: 24px;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.tag {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--accent);
}

.tag.cars { background: var(--car); }
.tag.horses { background: var(--horse); }
.tag.life { background: var(--accent); }

.article h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.article p {
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.split {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: end;
  padding: 28px;
  isolation: isolate;
  color: var(--paper);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.panel:hover::before {
  transform: scale(1.04);
}

.panel.cars::before {
  background-image: url("Images/fqs 2025-06-29 100319.506.JPG");
}

.panel.horses::before {
  background-image: url("Images/EE89B01A-20E5-4ABF-80DD-8D07FB279480.jpg");
}
.panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
  margin-bottom: 16px;
  font-weight: 500;
}

.panel p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 24px;
  background: rgba(22, 22, 22, 0.62);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.article-modal.open {
  display: block;
}

.modal-inner {
  max-width: 940px;
  margin: 34px auto;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-image {
  min-height: 430px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.secret-lambda { display: inline-block; margin-left: 12px; padding: 6px 8px; color: var(--muted); font-family: Georgia, serif; }
.secret-lambda:hover { color: var(--accent); }
.secret-lambda:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.modal-image.wip-image {
  min-height: 430px;
}

.image-nav,
.image-count,
.modal-image-placeholder {
  display: none;
}

.modal-image.has-carousel .image-nav,
.modal-image.has-carousel .image-count {
  display: inline-flex;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 22, 0.42);
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.image-nav-prev {
  left: 18px;
}

.image-nav-next {
  right: 18px;
}

.image-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.5);
  color: var(--paper);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.modal-image.wip-image .modal-image-placeholder {
  display: block;
}

.modal-content {
  padding: clamp(26px, 5vw, 64px);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.close-modal {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.modal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 500;
  margin-bottom: 18px;
}

.modal-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 28px;
}

.modal-body {
  color: #393530;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 720px;
}

.modal-body p + p {
  margin-top: 22px;
}

.studio {
  margin-top: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.studio-header {
  padding: clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: end;
}

.studio-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.studio-header p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
}

.studio-grid-locked {
  display: none;
}

.studio-grid-unlocked {
  display: grid;
}

.studio-lock {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.studio-lock h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 8px;
}

.studio-lock p {
  color: var(--muted);
  line-height: 1.55;
}

.lock-row {
  display: flex;
  gap: 10px;
}

.lock-row input {
  min-width: min(280px, 52vw);
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 999px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.lock-row input:focus {
  border-color: rgba(22, 22, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.06);
}

.studio-form,
.studio-preview {
  padding: clamp(24px, 4vw, 44px);
}

.studio-form {
  border-right: 1px solid var(--line);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(22, 22, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.file-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.studio-actions .btn {
  border: 1px solid var(--ink);
}

.danger-btn {
  background: transparent;
  color: var(--accent);
  border-color: rgba(143, 31, 29, 0.35) !important;
}

.import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hidden-file {
  display: none;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
}

.preview-card .article-content {
  min-height: auto;
}

.saved-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.saved-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.saved-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(251, 250, 246, 0.7);
}

.saved-item strong {
  display: block;
  margin-bottom: 3px;
}

.saved-item span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mini-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.export-box {
  display: none;
  margin-top: 18px;
}

.export-box textarea {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.45;
  background: #fffdf8;
}

.newsletter {
  margin-top: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-dark);
  color: var(--paper);
  padding: clamp(28px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.newsletter h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 20px;
}

.signup {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  border-radius: 999px;
}

.signup input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  padding: 0 12px;
  min-width: 0;
}

.signup input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.signup button {
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 28px 46px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .newsletter,
  .split,
  .studio-header,
  .studio-grid,
  .studio-lock {
    grid-template-columns: 1fr;
  }

  .lock-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 560px;
  }

  .article,
  .article.wide {
    grid-column: span 12;
  }

  .article.wide {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .studio-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  main {
    padding: 20px 16px 52px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-image {
    min-height: 460px;
  }

  .panel {
    min-height: 430px;
  }

  .signup {
    border-radius: 24px;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .signup input {
    padding: 13px 12px;
  }

  footer {
    flex-direction: column;
    padding: 24px 16px 36px;
  }
}
