/* ==========================================================================
   Fine Apps LLC · Editorial studio landing page
   Palette: warm paper, near-black ink, restrained bronze accent
   Type: Playfair Display (display serif) + Inter (text sans)
   ========================================================================== */

:root {
  --paper: #FAF9F7;
  --paper-deep: #F3F1EC;
  --ink: #171412;
  --ink-soft: #57534E;
  --line: #E5E0D8;
  --accent: #96692E;
  --accent-deep: #7A5423;

  --panel: #161310;
  --panel-raised: #211D19;
  --panel-line: #37312A;
  --panel-text: #F5F1EA;
  --panel-muted: #A89F92;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --container: 1120px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

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

/* ==================== Header ==================== */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--ink); }

/* ==================== Buttons & links ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn .icon { width: 0.95em; height: 0.95em; }

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

.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 0.7rem 1.3rem;
}

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

.btn-ghost {
  border: 1px solid transparent;
  color: var(--ink-soft);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-ghost:hover { color: var(--accent-deep); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--panel-text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link .icon { width: 0.95em; height: 0.95em; }

.text-link:hover { color: #fff; border-color: #fff; }

/* ==================== Type utilities ==================== */

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.eyebrow-light { color: #C9A05F; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* ==================== Hero ==================== */

.hero { padding: clamp(4.5rem, 10vw, 8.5rem) 0 0; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-deep);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.rule-line { flex: 1; height: 1px; background: var(--line); }

.rule-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ==================== Featured work ==================== */

.work { padding: clamp(4rem, 8vw, 7rem) 0; }

.work-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  background: var(--panel);
  color: var(--panel-text);
  border-radius: 8px;
  padding: clamp(2.5rem, 5.5vw, 5rem);
}

.work-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.work-tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 1.9rem;
}

.work-lede {
  font-size: 1.06rem;
  line-height: 1.7;
  color: #D8D1C5;
  margin-bottom: 2.75rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.9rem;
}

.feature-list li {
  display: flex;
  gap: 1.35rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--panel-line);
}

.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #C9A05F;
  min-width: 2rem;
  line-height: 1.5;
}

.feature-list h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--panel-text);
}

.feature-list p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--panel-muted);
}

/* ---------- Phone mockup ---------- */

.work-visual { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  background: #000;
  border-radius: 42px;
  border: 1px solid var(--panel-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 12px;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(170deg, #1C1916 0%, #131109 100%);
  overflow: hidden;
  padding: 3.4rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.68rem;
}

.ps-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ps-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--panel-text);
}

.ps-date { color: var(--panel-muted); font-size: 0.62rem; }

.ps-score {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
}

.ps-score-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: #C9A05F;
}

.ps-score-label { color: var(--panel-muted); }

.ps-skills { display: flex; flex-direction: column; gap: 0.65rem; }

.ps-skill-row {
  display: flex;
  justify-content: space-between;
  color: #D8D1C5;
  margin-bottom: 0.3rem;
}

.ps-bar {
  height: 3px;
  border-radius: 2px;
  background: #2C2620;
  overflow: hidden;
}

.ps-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8A6B3A, #C9A05F);
}

.ps-moment {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  color: var(--panel-muted);
  line-height: 1.5;
}

.ps-moment-time {
  font-weight: 600;
  color: #C9A05F;
  white-space: nowrap;
}

/* ==================== What's next ==================== */

.next {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.next-inner { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* ==================== Studio ==================== */

.studio { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.studio-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.principle {
  border-top: 1px solid var(--ink);
  padding-top: 1.6rem;
}

.principle-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.principle p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ==================== Contact ==================== */

.contact {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.contact-inner {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-link {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  margin-top: 2.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover { color: var(--accent-deep); border-color: var(--ink); }

/* ==================== Footer ==================== */

.site-footer {
  background: var(--panel);
  color: var(--panel-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.wordmark-footer {
  color: var(--panel-text);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 1rem;
}

.footer-legal, .footer-copy {
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--panel-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--panel-text); }

/* ==================== Reveal animation ==================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==================== Responsive ==================== */

@media (max-width: 900px) {
  .work-panel { grid-template-columns: 1fr; }
  .work-visual { order: -1; }
  .phone { width: min(250px, 80%); }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
