/* Law Office of Jason Skala LLC. One stylesheet for index.html and privacy.html. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/newsreader-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --ink: #17282F;
  --slate: #59676D;
  --brand: #581A14;       /* burgundy from the firm's original site: brand, buttons, display headings, links */
  --brand-dark: #3E110D;  /* hover state for the burgundy */
  --gold: #B1A15E;        /* muted gold: short rules only, never text (2.6:1 on white) */
  --rule: #DBE2E4;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 8vw, 104px);
  --bar-height: 72px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
a {
  color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.15em;
  transition: color 0.15s ease, text-underline-offset 0.15s ease;
}
a:hover { color: var(--brand-dark); text-underline-offset: calc(0.15em + 2px); }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
#main:focus, #consultation:focus { outline: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--white);
  border-radius: 4px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; color: var(--brand); }
h1 { font-size: 43px; line-height: 1.05; }
h2 { font-size: 30px; line-height: 1.15; }
@media (min-width: 720px) {
  h1 { font-size: 56px; }
  h2 { font-size: 34px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 72px; }
  h2 { font-size: 38px; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.button-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--slate); }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-tel { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; color: var(--brand); }
.brand-tagline { font-size: 13px; line-height: 1.3; color: var(--slate); margin-top: 3px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: 16px;
}
.site-nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 0.3em; }
.header-phone {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header-phone:hover { color: var(--brand); }
@media (max-width: 719px) {
  .site-nav { display: none; }
}

/* Hero */
.hero { padding-top: 56px; padding-bottom: 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: 22px; }
.hero-lede { font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 34ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 18px; }
.hero-phone {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-underline-offset: 0.2em; font-variant-numeric: tabular-nums;
}
.hero-phone:hover { color: var(--brand); text-underline-offset: calc(0.2em + 2px); }
.hero-fine { font-size: 15px; color: var(--slate); }
.hero-portrait { display: flex; align-items: center; gap: 16px; }
.hero-portrait img { width: 120px; flex: none; height: auto; border-radius: 2px; }
.portrait-name { display: block; font-weight: 600; font-size: 16px; }
.portrait-role { display: block; font-size: 15px; color: var(--slate); margin-top: 2px; }
@media (max-width: 599px) {
  .hero-actions .button-primary { width: 100%; }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 88px); }
  .hero-portrait { display: block; width: 320px; justify-self: end; }
  .hero-portrait img { width: 320px; }
  .hero-portrait figcaption { margin-top: 12px; }
}

/* Sections */
.section { border-top: 1px solid var(--rule); padding-top: var(--section); padding-bottom: var(--section); }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
.split > h2 { max-width: 18ch; }
.split-head h2 { max-width: 18ch; }
/* The only use of the gold: a short rule above section and page headings. */
.split > h2::before, .split-head h2::before, .service h1::before, .article h1::before, .blog h1::before, .prose h1::before {
  content: ""; display: block; width: 40px; height: 2px; margin-bottom: 18px; background: var(--gold);
}
.section-intro { color: var(--slate); margin-top: 14px; max-width: 36ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); }
  .split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Cases we handle */
.cases { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 600px) {
  .cases { grid-template-columns: 1fr 1fr; }
}
.cases li { border-top: 1px solid var(--rule); }
.case-link { display: block; padding: 18px 0 20px; color: var(--ink); text-decoration: none; }
.case-name {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--serif); font-size: 24px; line-height: 1.2;
  text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.16em;
  transition: color 0.15s ease, text-underline-offset 0.15s ease;
}
.case-name::after {
  content: "\2192"; flex: none; font-family: var(--sans); font-size: 18px; color: var(--slate);
  transition: color 0.15s ease, transform 0.15s ease;
}
.case-desc { display: block; font-size: 15px; color: var(--slate); margin-top: 4px; }
.case-link:hover .case-name, .case-link:focus-visible .case-name {
  color: var(--brand); text-decoration-color: currentColor; text-underline-offset: calc(0.16em + 2px);
}
.case-link:hover .case-name::after, .case-link:focus-visible .case-name::after { color: var(--brand); transform: translateX(2px); }

/* About */
.about-name { font-weight: 600; font-size: 18px; }
.about-firm { color: var(--slate); font-size: 15px; margin-top: 2px; margin-bottom: 18px; }
.about-bio { max-width: 58ch; }
.about-more { margin-top: 18px; font-size: 15px; }

/* Selected case results: four editorial rows in two columns, no cards */
.results { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 600px) {
  .results { grid-template-columns: 1fr 1fr; }
}
.results li { border-top: 1px solid var(--rule); padding: 18px 0 20px; }
.results li > span { display: block; }
.result-meta { font-size: 15px; color: var(--slate); }
.result-value { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-top: 4px; color: var(--brand); font-variant-numeric: tabular-nums; }
.result-detail { font-size: 15px; margin-top: 4px; }
.result-case { font-size: 15px; color: var(--slate); margin-top: 4px; }
.results-note { margin-top: 12px; font-size: 14px; color: var(--slate); }

/* Consultation */
.consult-lede { color: var(--slate); margin-top: 14px; max-width: 36ch; }
.consult-phone {
  display: inline-block; margin-top: 22px;
  font-weight: 600; font-size: 22px; color: var(--ink);
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.consult-phone:hover { color: var(--brand); text-decoration: underline; }
.consult-hours { color: var(--slate); margin-top: 4px; }

.form { max-width: 600px; }
.field { margin-bottom: 20px; }
@media (min-width: 640px) {
  .form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .form > * { grid-column: 1 / -1; }
  .form > .field-half { grid-column: auto; min-width: 0; }
}
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--slate); }
.input {
  width: 100%; min-height: 48px;
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--slate); border-radius: 4px;
  padding: 12px 14px;
}
.input:focus { border-color: var(--brand); }
textarea.input { min-height: 140px; resize: vertical; }
.field.is-invalid .input { border: 2px solid var(--ink); }
.field-error { margin-top: 6px; font-size: 14px; font-weight: 600; }
.field-check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.field-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.field-check label { font-weight: 400; font-size: 16px; margin: 0; cursor: pointer; }
.field.is-invalid .field-check input { outline: 2px solid var(--ink); outline-offset: 2px; }
.notice { font-size: 14px; color: var(--slate); max-width: 52ch; margin-bottom: 10px; }
.bot-check:not(:empty) { margin: 8px 0 16px; }
.fallback { color: var(--ink); }
.link-button {
  display: inline; color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em;
  cursor: pointer; font: inherit; padding: 10px 0; margin: -10px 0;
}
.link-button:hover { color: var(--brand-dark); }
.input[disabled], .field-check input[disabled] { opacity: 0.7; cursor: progress; }
.form-actions { margin-top: 20px; }
.form-status { margin-top: 12px; font-size: 15px; color: var(--slate); }
.form-status:empty { display: none; }
.form-errors, .form-alert { border-left: 3px solid var(--ink); padding: 12px 16px; margin-bottom: 24px; }
.form-errors h3 { font: 600 16px/1.4 var(--sans); margin-bottom: 6px; }
.form-errors ul { list-style: disc; padding-left: 20px; }
.form-errors a { color: var(--ink); }
.form-alert p { margin: 0; }
.form-alert strong { display: block; margin-bottom: 4px; }
.form-success h2 { margin-bottom: 14px; }
.form-success p { max-width: 58ch; margin-bottom: 12px; }
.receipt { font-variant-numeric: tabular-nums; word-break: break-all; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Common questions */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 22px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--slate); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brand); }
.faq details p { color: var(--slate); padding-bottom: 20px; max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-top: 48px; padding-bottom: 48px; font-size: 15px; color: var(--slate); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}
.footer-firm { font-weight: 600; color: var(--ink); font-size: 16px; }
.site-footer address { font-style: normal; margin-top: 6px; line-height: 1.6; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 20px; margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-disclaimer { max-width: 62ch; font-size: 14px; }
.footer-copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }

/* Mobile consultation and call bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--rule);
}
.mobile-bar .button { min-height: 48px; padding: 0 12px; font-size: 15px; }
@media (max-width: 759px) {
  body { padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom)); }
}
@media (min-width: 760px) {
  .mobile-bar { display: none; }
}

/* Privacy page */
.page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.prose { max-width: 66ch; }
.prose h1 { margin-bottom: 16px; font-size: 38px; }
.prose h2 { font-size: 24px; margin-top: 36px; margin-bottom: 10px; }
.prose p { margin-bottom: 14px; }
.prose .meta { color: var(--slate); font-size: 15px; }
.prose .fine { color: var(--slate); font-size: 14px; margin-top: 32px; }

/* Content pages: practice landings, about, contact, articles, resources index */
.narrow { max-width: calc(760px + 2 * var(--pad)); }
.kicker { font-size: 15px; margin-bottom: 14px; }
.kicker a { color: var(--slate); }
.kicker a:hover { color: var(--brand); }
.service, .article, .blog { padding-top: 56px; padding-bottom: 56px; }
.service h1, .article h1, .blog h1, .prose h1 { font-size: 38px; line-height: 1.1; margin-bottom: 20px; }
@media (min-width: 720px) {
  .service h1, .article h1, .blog h1, .prose h1 { font-size: 48px; }
}
.service p { max-width: 62ch; margin-bottom: 16px; }
.service .cta-actions { margin-top: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.contact-address { font-style: normal; line-height: 1.7; margin-top: 8px; }
.contact-address a { color: var(--ink); }
.contact-address a:hover { color: var(--brand); }

.article-meta { color: var(--slate); font-size: 15px; margin-bottom: 32px; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body dl { margin-bottom: 1.2em; }
.article-body h2 { font-size: 28px; line-height: 1.2; margin: 1.6em 0 0.6em; }
.article-body h3, .article-body h4, .article-body h5, .article-body h6 { font-family: var(--sans); font-weight: 600; margin: 1.4em 0 0.5em; }
.article-body h3 { font-size: 21px; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 18px; }
.article-body ul { list-style: disc; padding-left: 1.4em; }
.article-body ol { list-style: decimal; padding-left: 1.6em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--brand); }
.article-body blockquote { border-left: 3px solid var(--rule); padding-left: 20px; color: var(--slate); }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.article-body img { height: auto; margin: 1.2em 0; }
.article-body .caption { font-size: 15px; color: var(--slate); }
.article-body code, .article-body pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
.article-body pre { overflow-x: auto; padding: 12px 16px; border: 1px solid var(--rule); }
.article-body dt { font-weight: 600; }
.article-body dd { margin: 0 0 0.6em 1.4em; }
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.article-body th { font-weight: 600; }
.article-body caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.article-cta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.article-cta p { margin-bottom: 16px; max-width: 58ch; }
.article-cta .cta-actions { margin-bottom: 0; }

.post-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); margin-top: 32px; }
.post-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.post-list a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 0.16em; }
.post-list a:hover { color: var(--brand); text-decoration-color: currentColor; text-underline-offset: calc(0.16em + 2px); }
.post-list time { color: var(--slate); font-size: 15px; white-space: nowrap; }

/* Case results index: four stories, then the published results list */
.blog h2 { font-size: 26px; margin-top: 44px; margin-bottom: 8px; }
.case-summaries { list-style: none; padding: 0; border-top: 1px solid var(--rule); margin-top: 20px; }
.case-summaries li { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 600px) {
  .case-summaries li { grid-template-columns: 64px minmax(0, 1fr); }
  .case-summaries .summary-year { grid-row: 1 / span 3; }
}
.summary-year { font-size: 15px; color: var(--slate); font-variant-numeric: tabular-nums; }
.summary-case { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.summary-docket { font-family: var(--sans); font-size: 15px; color: var(--slate); white-space: nowrap; }
.summary-claim { font-size: 15px; color: var(--slate); }
.summary-result { font-size: 16px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 15px; }
.pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.page-count { color: var(--slate); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .case-link:hover .case-name::after, .case-link:focus-visible .case-name::after { transform: none; }
}
