/* ropa — editorial calm
   paper #f7f5f0 · ink #1c1a15 · rule #e3ded3 · accent #9a5b2d */

:root {
  --paper: #f7f5f0;
  --ink: #1c1a15;
  --muted: #6b6659;
  --body: #4a463c;
  --rule: #e3ded3;
  --accent: #9a5b2d;

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 72px;
  --label-col: 280px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- header ---- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 40px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.site-header .contact-link {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---- shared ---- */

main { flex-grow: 1; display: flex; flex-direction: column; }

.label {
  width: var(--label-col);
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- home: hero ---- */

.hero {
  padding: 128px var(--gutter) 116px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(98px, 14.6vw, 210px);
  line-height: 0.8;
  letter-spacing: -0.038em;
}

.hero-row {
  display: flex;
  gap: 72px;
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  padding-top: 38px;
}

.hero-row p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(24px, 1.95vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.014em;
  text-wrap: pretty;
}

/* ---- home: contact ---- */

.contact {
  border-top: 1px solid var(--rule);
  padding: 88px var(--gutter) 100px;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}

.contact-body { display: flex; flex-direction: column; gap: 22px; }

.contact-body p {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
  color: #555044;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.contact-email:hover { color: var(--ink); }

/* ---- legal pages ---- */

.legal-head {
  padding: 96px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.legal-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body {
  display: flex;
  gap: 88px;
  padding: 64px var(--gutter) 96px;
  align-items: flex-start;
}

.toc {
  width: 244px;
  flex-shrink: 0;
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.toc-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
}

.toc a {
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
}
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.legal-body article {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.lede {
  margin: 0;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #3f3b32;
  text-wrap: pretty;
}

.legal-body section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 32px;
}

.legal-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
}

.legal-body a { color: var(--accent); }
.legal-body a:hover { color: var(--ink); }

.legal-body section:last-child {
  border-top: 1px solid var(--rule);
  padding-top: 34px;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 34px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.site-footer nav { display: flex; gap: 32px; }
.site-footer a { color: var(--muted); }

/* ---- phone ---- */

@media (max-width: 740px) {
  :root { --gutter: 24px; }

  .site-header {
    align-items: center;
    padding: 14px var(--gutter);
    min-height: 56px;
  }
  .wordmark { font-size: 23px; }
  .site-header .contact-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 12px;
  }

  .hero { padding: 68px var(--gutter) 60px; gap: 32px; }
  .hero-row { flex-direction: column; gap: 20px; padding-top: 26px; }
  .label { width: auto; font-size: 11px; }

  .contact { flex-direction: column; gap: 20px; padding: 48px var(--gutter) 56px; }
  .contact-body { gap: 16px; }
  .contact-body p { font-size: 17px; }
  .contact-email { display: flex; align-items: center; min-height: 48px; }

  .legal-head { padding: 56px var(--gutter) 36px; }
  .legal-body { flex-direction: column; gap: 40px; padding: 40px var(--gutter) 64px; }
  .toc { position: static; width: auto; }
  .toc a { display: flex; align-items: center; min-height: 44px; }
  .legal-body h2 { font-size: 27px; }

  .site-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
    padding: 18px var(--gutter) 26px;
  }
  .site-footer nav { flex-direction: column; gap: 0; }
  .site-footer nav a { display: flex; align-items: center; min-height: 44px; }
  .site-footer > div { padding-top: 8px; }
}
