/* PreWrittenResume – site styles. Tokens follow etsy/brand/BRAND.md */
:root {
  --navy: #1F3A5F;
  --navy-deep: #16304F;
  --teal: #0F6E6E;
  --teal-soft: #DCEDEC;
  --ink: #222222;
  --muted: #55606E;
  --mist: #E2E8EF;
  --mist-soft: #F2F5F8;
  --line: #CBD5E1;
  --white: #FFFFFF;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", Calibri, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand span b { font-weight: 400; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid var(--navy); white-space: nowrap;
  background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn.secondary { background: transparent; color: var(--navy); }
.btn.secondary:hover { background: var(--mist-soft); color: var(--navy); }
.btn.small { padding: 8px 14px; font-size: .95rem; }

/* Hero */
.hero { background: var(--mist-soft); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 64px; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .trust { margin-top: 22px; font-size: .95rem; color: var(--muted); }

/* The one memorable element: the before/after resume */
.compare { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(31, 58, 95, .45); }
.compare-toggle { display: flex; border-bottom: 1px solid var(--line); }
.compare-toggle button {
  flex: 1; padding: 12px; border: 0; background: transparent; font: inherit; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
}
.compare-toggle button[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--teal); }
.sheet { padding: 26px 28px 30px; font-size: .92rem; line-height: 1.5; }
.sheet .name { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 700; border-top: 6px solid var(--navy); padding-top: 12px; margin: 0; }
.sheet .name small { font-weight: 400; color: var(--muted); font-size: 1.05rem; }
.sheet .role { color: var(--muted); margin: 2px 0 14px; }
.sheet h4 { margin: 14px 0 6px; font-size: .8rem; letter-spacing: .06em; color: var(--navy); background: var(--mist); border-left: 4px solid var(--navy); padding: 3px 8px; }
.sheet ul { margin: 0; padding-left: 18px; }
.sheet li { margin-bottom: 4px; }
.sheet .job { display: flex; justify-content: space-between; font-weight: 700; margin-top: 4px; }
.sheet .job span { font-weight: 400; color: var(--muted); }
.sheet .ph { color: #8A94A3; background: repeating-linear-gradient(90deg, #EEF1F5 0 6px, #F6F8FA 6px 12px); border-radius: 3px; padding: 0 3px; }
.sheet [data-state] { display: none; }
.compare[data-show="generic"] .sheet [data-state="generic"],
.compare[data-show="written"] .sheet [data-state="written"] { display: block; }
.compare-caption { padding: 0 28px 22px; font-size: .9rem; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sheet [data-state] { animation: appear .35s ease; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}

/* Sections */
section { padding-block: 64px; }
section.tint { background: var(--mist-soft); border-block: 1px solid var(--line); }
.section-intro { max-width: 62ch; margin-bottom: 32px; }
.section-intro p { color: var(--muted); }

/* Template list: rows, not cards */
.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.template-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.template-row img { border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; }
.template-row strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.template-row em { font-style: normal; color: var(--muted); font-size: .95rem; }
.template-row .price { font-weight: 700; color: var(--navy); }
.template-row:hover strong { color: var(--teal); }

/* Included + steps */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.steps strong { display: block; color: var(--navy); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Product page */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 28px 56px; align-items: start; }
.product .preview { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(31, 58, 95, .5); }
.buy { background: var(--mist-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.buy .price { font-family: var(--serif); font-size: 2rem; color: var(--navy); font-weight: 700; }
.buy p { margin: 6px 0 14px; color: var(--muted); font-size: .95rem; }
.example { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.example h3 { font-size: .85rem; letter-spacing: .05em; background: var(--mist); border-left: 4px solid var(--navy); padding: 4px 10px; margin: 18px 0 8px; font-family: var(--sans); }
.example ul { padding-left: 20px; }
.tips h3 { margin-top: 1.4em; }
.verbs { columns: 3 140px; padding: 0; list-style: none; }
.compare-text { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-text div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.compare-text .weak { background: #F8F9FB; color: var(--muted); }
.compare-text .strong { border-color: var(--teal); background: var(--teal-soft); }
.compare-text b { display: block; font-size: .9rem; margin-bottom: 4px; color: var(--navy); }
.related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.related a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #D7E0EA; padding-block: 40px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .hero .wrap, .split, .product, .templates, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 40px; gap: 32px; }
  .site-nav a:not(.btn) { display: none; }
  .brand span { font-size: 1.05rem; }
  .product > div:last-child { order: -1; }
  .compare-text { grid-template-columns: 1fr; }
  section { padding-block: 44px; }
}
