:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.demo-strip {
  background: #111;
  color: #fff;
  font: 800 13px/1.3 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 8px 16px;
  text-align: center;
}

.home-link {
  color: inherit;
  display: inline-block;
  font-weight: 900;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  border: 3px solid #fff;
  max-height: 86vh;
  max-width: 92vw;
  object-fit: contain;
}

.lightbox button {
  background: #fff;
  border: 2px solid #000;
  color: #000;
  font-weight: 950;
  min-height: 44px;
  padding: 10px 14px;
  position: absolute;
  right: 24px;
  top: 24px;
}

/* Classified Sheet */
.classified-template {
  background: #d9cfb8;
  color: #17130e;
  font-family: Georgia, "Times New Roman", serif;
}

.classified-page {
  background: #f8f0dd;
  box-shadow: 0 18px 60px rgba(30, 22, 10, 0.2);
  margin: 30px auto;
  max-width: 1400px;
  padding: 34px;
}

.classified-masthead {
  border: 5px double #17130e;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 340px;
  padding: 26px;
}

.classified-masthead h1 {
  font-size: 88px;
  line-height: 0.88;
  margin: 0;
}

.classified-phone {
  align-content: center;
  background: #c62f1d;
  color: #fff8e8;
  display: grid;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 950;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.classified-phone span {
  font-size: 13px;
  text-transform: uppercase;
}

.classified-rule {
  border-bottom: 3px solid #17130e;
  border-top: 3px solid #17130e;
  display: flex;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 950;
  gap: 18px;
  justify-content: space-between;
  margin: 20px 0 24px;
  padding: 12px 0;
  text-transform: uppercase;
}

.classified-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(12, 1fr);
}

.classified-ad {
  border: 3px solid #17130e;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.classified-ad h2,
.classified-ad h3 {
  font-size: 42px;
  line-height: 0.95;
  margin: 0;
}

.classified-ad p {
  font-size: 20px;
  line-height: 1.42;
  margin: 0;
}

.classified-ad strong {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
}

.classified-photo {
  background: #17130e;
  color: #fff;
  display: block;
  padding: 10px;
}

.classified-photo img {
  aspect-ratio: 4 / 3;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  width: 100%;
}

.classified-lead {
  align-items: stretch;
  grid-column: span 8;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
}

.classified-lead h2,
.classified-lead p {
  grid-column: 1;
}

.classified-lead .classified-photo {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.classified-services,
.classified-coupon {
  grid-column: span 4;
}

.classified-project-photo {
  grid-column: span 4;
  padding: 0;
}

.classified-project-photo .classified-photo {
  min-height: 100%;
}

.classified-rules {
  grid-column: span 7;
}

.classified-quote {
  grid-column: span 5;
}

.classified-coupon {
  background: #f6ce46;
  border-style: dashed;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.classified-coupon b {
  font-size: 44px;
  line-height: 0.9;
}

.classified-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.classified-list li {
  border: 2px solid #17130e;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  padding: 11px 12px;
}

.classified-quote {
  background: #17130e;
  color: #fff8e8;
}

.classified-form {
  display: grid;
  gap: 10px;
}

.classified-form input,
.classified-form select,
.classified-form textarea {
  background: #fff8e8;
  border: 2px solid #17130e;
  min-height: 44px;
  padding: 9px;
  width: 100%;
}

.classified-form button {
  background: #c62f1d;
  border: 2px solid #fff8e8;
  color: #fff;
  font-weight: 950;
  min-height: 48px;
}

/* Field Ledger */
.ledger-template {
  background: #ece7dc;
  color: #1b1a17;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.ledger-frame {
  display: grid;
  grid-template-columns: 42vw 1fr;
  min-height: 100vh;
}

.ledger-photos {
  background: #1b1a17;
  display: grid;
  gap: 12px;
  grid-template-rows: 1.2fr 0.8fr;
  min-height: 100vh;
  padding: 16px;
  position: sticky;
  top: 0;
}

.ledger-photos a {
  border: 1px solid #d7cbb7;
  display: block;
  overflow: hidden;
}

.ledger-photos img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ledger-pages {
  padding: 36px 42px 54px;
}

.ledger-top {
  align-items: end;
  border-bottom: 2px solid #1b1a17;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 180px;
  padding-bottom: 20px;
}

.ledger-top h1 {
  font-size: 66px;
  line-height: 0.95;
  margin: 0;
}

.ledger-stamp {
  border: 2px solid #1b1a17;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  padding: 12px;
  text-align: center;
  transform: rotate(2deg);
}

.ledger-entry {
  border-bottom: 1px solid #9f927f;
  display: grid;
  gap: 20px;
  grid-template-columns: 140px 1fr;
  padding: 28px 0;
}

.ledger-date {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ledger-entry h2 {
  font-size: 34px;
  line-height: 1.02;
  margin: 0 0 10px;
}

.ledger-entry p {
  font-size: 19px;
  line-height: 1.52;
  margin: 0;
}

.ledger-checks {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.ledger-checks li {
  background: #fff9ec;
  border: 1px solid #7c6f5d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  padding: 12px;
}

.ledger-call {
  background: #1b1a17;
  color: #fff9ec;
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 24px;
}

.ledger-call a {
  color: #f0c35a;
  font-size: 28px;
  font-weight: 950;
  text-decoration: none;
}

/* Quote Lab */
.quote-template {
  background: #eef2f6;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.quote-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  min-height: 100vh;
}

.quote-rail {
  background: #111827;
  color: #f8fafc;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 28px;
}

.quote-rail h1 {
  font-size: 40px;
  line-height: 0.98;
  margin: 22px 0 0;
}

.quote-rail nav {
  align-content: center;
  display: grid;
  gap: 12px;
}

.quote-rail nav a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 15px;
  text-decoration: none;
}

.quote-main {
  display: grid;
  gap: 34px;
  min-width: 0;
  padding: 42px;
}

.quote-hero {
  align-items: end;
  background: #f8fafc;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  padding: 42px;
}

.quote-hero h2 {
  font-size: 58px;
  line-height: 1;
  margin: 0;
}

.quote-hero p {
  color: #435165;
  font-size: 19px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.quote-hero img {
  aspect-ratio: 4 / 3;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.quote-tool {
  background: #fff;
  border: 1px solid #cbd5e1;
  display: grid;
  gap: 24px;
  padding: 34px;
}

.quote-tool h2 {
  font-size: 42px;
  line-height: 1;
  margin: 0;
}

.quote-fields {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.quote-field {
  display: grid;
  gap: 8px;
}

.quote-field label {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-field input,
.quote-field select {
  background: #f8fafc;
  border: 1px solid #94a3b8;
  min-height: 52px;
  padding: 12px;
}

.quote-actions {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.quote-actions article {
  background: #111827;
  color: #f8fafc;
  min-height: 160px;
  padding: 24px;
}

.quote-actions strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.quote-panel {
  background: #f97316;
  color: #111827;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 40px 34px;
}

.quote-total {
  background: #111827;
  color: #f8fafc;
  margin: 30px 0;
  padding: 28px;
}

.quote-total span {
  display: block;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-total b {
  font-size: 42px;
  line-height: 1;
}

.quote-panel form {
  display: grid;
  gap: 14px;
}

.quote-panel input,
.quote-panel textarea {
  background: #fff7ed;
  border: 2px solid #111827;
  min-height: 52px;
  padding: 12px;
  width: 100%;
}

.quote-panel button {
  background: #111827;
  border: 0;
  color: #fff;
  font-weight: 950;
  min-height: 54px;
}

/* Storm Dispatch */
.dispatch-template {
  background: #080b12;
  color: #f8fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.dispatch-board {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1500px;
  min-height: 100vh;
  padding: 28px;
}

.dispatch-top {
  align-items: center;
  background: #f3c623;
  color: #080b12;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 24px 28px;
}

.dispatch-top h1 {
  font-size: 56px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.dispatch-live {
  background: #080b12;
  color: #f3c623;
  font-size: 20px;
  font-weight: 950;
  padding: 16px 18px;
}

.dispatch-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.9fr) minmax(340px, 0.58fr);
}

.dispatch-card {
  background: #111827;
  border: 1px solid #334155;
  display: grid;
  gap: 18px;
  padding: 26px;
}

.dispatch-card h2,
.dispatch-card h3 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.dispatch-card p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.dispatch-photo {
  grid-row: span 2;
  min-height: 620px;
  padding: 0;
}

.dispatch-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dispatch-queue {
  display: grid;
  gap: 12px;
}

.dispatch-queue div {
  border: 1px solid #475569;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px 1fr auto;
  padding: 14px;
}

.dispatch-queue b {
  color: #f3c623;
}

.dispatch-map {
  background:
    linear-gradient(#1e293b 1px, transparent 1px),
    linear-gradient(90deg, #1e293b 1px, transparent 1px),
    #0f172a;
  background-size: 42px 42px;
  min-height: 340px;
  position: relative;
}

.dispatch-map span {
  background: #ef4444;
  color: #fff;
  font-weight: 950;
  padding: 8px 10px;
  position: absolute;
}

.dispatch-map span:nth-child(1) {
  left: 16%;
  top: 22%;
}

.dispatch-map span:nth-child(2) {
  left: 54%;
  top: 34%;
}

.dispatch-map span:nth-child(3) {
  left: 36%;
  top: 68%;
}

.dispatch-form input,
.dispatch-form textarea,
.dispatch-form select {
  background: #020617;
  border: 1px solid #64748b;
  color: #fff;
  margin-top: 8px;
  min-height: 50px;
  padding: 12px;
  width: 100%;
}

.dispatch-form button {
  background: #f3c623;
  border: 0;
  color: #080b12;
  font-weight: 950;
  margin-top: 10px;
  min-height: 54px;
  width: 100%;
}

/* Porch Magazine */
.mag-template {
  background: #f4efe7;
  color: #151515;
  font-family: Georgia, "Times New Roman", serif;
}

.mag-wrap {
  margin: 0 auto;
  max-width: 1320px;
  padding: 24px;
}

.mag-masthead {
  border-bottom: 5px solid #151515;
  border-top: 5px solid #151515;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 220px;
  padding: 20px 0;
}

.mag-masthead h1 {
  font-size: 88px;
  line-height: 0.85;
  margin: 0;
}

.mag-issue {
  align-content: center;
  background: #151515;
  color: #f4efe7;
  display: grid;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.mag-cover {
  display: grid;
  gap: 24px;
  grid-template-columns: 0.72fr 1.28fr;
  padding: 28px 0;
}

.mag-cover-copy {
  display: grid;
  gap: 18px;
}

.mag-cover-copy h2 {
  font-size: 54px;
  line-height: 0.96;
  margin: 0;
}

.mag-cover-copy p {
  font-size: 21px;
  line-height: 1.45;
  margin: 0;
}

.mag-cover-photo {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 0.62fr;
}

.mag-cover-photo a {
  overflow: hidden;
}

.mag-cover-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mag-cover-photo a:first-child {
  min-height: 600px;
}

.mag-side-photos {
  display: grid;
  gap: 12px;
}

.mag-article-row {
  border-top: 2px solid #151515;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0;
}

.mag-article-row article {
  display: grid;
  gap: 10px;
}

.mag-article-row h3 {
  font-size: 31px;
  line-height: 1;
  margin: 0;
}

.mag-article-row p {
  line-height: 1.5;
  margin: 0;
}

.mag-pullquote {
  background: #d5402f;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  padding: 24px;
}

.mag-contact {
  border: 4px solid #151515;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  padding: 22px;
}

.mag-contact h2 {
  font-size: 42px;
  line-height: 1;
  margin: 0;
}

.mag-contact form {
  display: grid;
  gap: 10px;
}

.mag-contact input,
.mag-contact textarea {
  background: #fffaf2;
  border: 2px solid #151515;
  min-height: 46px;
  padding: 10px;
  width: 100%;
}

.mag-contact button {
  background: #151515;
  border: 0;
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1320px) {
  .quote-app {
    grid-template-columns: 260px minmax(0, 1fr) 320px;
  }

  .quote-main {
    gap: 28px;
    padding: 30px;
  }

  .quote-hero {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .quote-hero h2 {
    font-size: 52px;
  }

  .quote-rail h1 {
    font-size: 36px;
  }

  .quote-panel {
    padding: 32px 26px;
  }

  .quote-total b {
    font-size: 36px;
  }
}

@media (max-width: 1100px) {
  .classified-grid,
  .dispatch-grid,
  .quote-app {
    grid-template-columns: 1fr;
  }

  .classified-masthead,
  .classified-lead,
  .ledger-frame,
  .quote-hero,
  .mag-masthead,
  .mag-cover,
  .mag-contact {
    grid-template-columns: 1fr;
  }

  .classified-lead,
  .classified-services,
  .classified-coupon,
  .classified-project-photo,
  .classified-rules,
  .classified-quote {
    grid-column: auto;
  }

  .classified-lead h2,
  .classified-lead p,
  .classified-lead .classified-photo {
    grid-column: auto;
  }

  .classified-lead .classified-photo {
    grid-row: auto;
  }

  .ledger-photos {
    min-height: 560px;
    position: relative;
  }

  .quote-rail {
    align-items: start;
    gap: 18px 28px;
    grid-template-columns: minmax(220px, 0.5fr) 1fr;
    grid-template-rows: auto auto auto;
    padding: 28px;
  }

  .quote-rail > .home-link,
  .quote-rail h1,
  .quote-rail p {
    grid-column: 1;
  }

  .quote-rail nav {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .quote-rail nav {
    align-content: start;
    grid-template-columns: repeat(3, 1fr);
  }

  .dispatch-photo {
    grid-row: auto;
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .classified-page,
  .ledger-pages,
  .quote-main,
  .quote-panel,
  .dispatch-board,
  .mag-wrap {
    padding: 16px;
  }

  .classified-masthead h1 {
    font-size: 44px;
  }

  .classified-page {
    margin: 0;
  }

  .classified-masthead,
  .classified-ad {
    padding: 16px;
  }

  .classified-phone {
    font-size: 25px;
  }

  .classified-rule {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .classified-ad h2,
  .classified-ad h3 {
    font-size: 31px;
  }

  .ledger-top,
  .ledger-entry,
  .ledger-checks,
  .quote-fields,
  .quote-actions,
  .quote-rail,
  .dispatch-top,
  .dispatch-queue div,
  .quote-rail nav,
  .mag-cover-photo,
  .mag-article-row {
    grid-template-columns: 1fr;
  }

  .ledger-top h1,
  .quote-hero h2,
  .mag-cover-copy h2 {
    font-size: 40px;
  }

  .quote-hero,
  .quote-tool,
  .quote-panel {
    padding: 22px;
  }

  .quote-rail > .home-link,
  .quote-rail h1,
  .quote-rail p,
  .quote-rail nav {
    grid-column: auto;
    grid-row: auto;
  }

  .quote-hero img {
    min-height: 260px;
  }

  .quote-total b {
    font-size: 34px;
  }

  .dispatch-top h1,
  .mag-contact h2 {
    font-size: 34px;
  }

  .dispatch-photo {
    min-height: 360px;
  }

  .mag-masthead h1 {
    font-size: 50px;
  }

  .mag-cover-photo a:first-child {
    min-height: 360px;
  }
}
