/* WerkEngels: one page, one stylesheet, no scripts.
   The same family of look as areactor.org: cream paper and ink blue by
   day, warm black and brass by night (it follows the visitor's device
   setting), Libre Caslon Text throughout, spacing on the Fibonacci steps
   8, 13, 21, 34, 55, 89. */

:root {
  --page: #f3eee3; --panel: #faf7f0; --ink: #1b1814; --muted: #6b5e4c;
  --accent: #1d3c6e; --on-accent: #ffffff; --edge: #ddd2bf; --rule: #1b1814;
  --wrong: #9a2f22;
  --font: "Libre Caslon Text", "Big Caslon", Baskerville, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16130f; --panel: #1d1a15; --ink: #ece4d3; --muted: #b3a891;
    --accent: #c8a25c; --on-accent: #16130f; --edge: #3a342a; --rule: #4a4235;
    --wrong: #e08a7c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 18px/1.6 var(--font); }
a { color: var(--accent); }
h1, h2 { font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
p { margin: 0 0 13px; }
img { max-width: 100%; height: auto; }

.in, .wrap { max-width: 1000px; margin: 0 auto; padding-left: 21px; padding-right: 21px; }

/* The top bar */
.bar { border-bottom: 1px solid var(--edge); }
.bar .in { display: flex; justify-content: space-between; align-items: center; gap: 21px; height: 64px; }
.bar .name { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--ink); text-decoration: none; }
.bar .name img { width: 34px; height: auto; }

.wrap { padding-top: 10px; padding-bottom: 89px; }

/* The lead picture, just under the bar */
.lead-picture { margin: 0 0 21px; }
.lead-picture img { display: block; width: 100%; height: auto; border-radius: 4px; }
.lead-picture figcaption { margin-top: 8px; text-align: center; font-style: italic; font-size: 16px; color: var(--muted); }
.part { margin-top: 55px; padding-top: 55px; border-top: 3px double var(--rule); }

/* The opening */
.opening { text-align: center; }
.opening h1 { font-size: 55px; line-height: 1.08; margin-bottom: 21px; }
.questions p { margin: 0 auto 8px; max-width: 46ch; font-size: 21px; line-height: 1.45; font-style: italic; color: var(--muted); text-wrap: balance; }
.questions .answer { margin-top: 21px; font-style: normal; color: var(--ink); }

.lead { max-width: 60ch; margin: 0 auto 21px; text-align: center; font-size: 21px; line-height: 1.45; text-wrap: pretty; }

.lead-in { font-style: italic; color: var(--muted); margin-bottom: 34px; }

/* The faults */
.faults { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.fault { padding: 21px; background: var(--panel); border: 1px solid var(--edge); border-radius: 4px; }
.fault:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fault h2 { font-size: 26px; margin-bottom: 5px; }
.fault .why { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 13px; }
.fault dl { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 5px 13px; margin: 0; }
.fault dt { font-variant: small-caps; letter-spacing: .1em; font-size: 15px; color: var(--muted); padding-top: 3px; }
.fault dd { margin: 0; }
.fault .wrong { color: var(--wrong); text-decoration: line-through; text-decoration-thickness: 1px; }
.fault .right { font-weight: 700; }

/* Services, what you get, the price */
.offer { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 34px; align-items: start; }
.offer figure { margin: 0; }
.offer img { display: block; border-radius: 4px; border: 1px solid var(--edge); }
.offer h2 { font-size: 26px; margin-bottom: 13px; }
.offer h2 + .services { margin-bottom: 34px; }
.services { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 8px 21px; margin: 0 0 21px; padding: 13px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.services dt { font-weight: 700; }
.services dd { margin: 0; color: var(--muted); }
.price { margin: 21px 0 0; font-size: 34px; line-height: 1.2; }
.price-note { color: var(--muted); font-style: italic; }

/* Contact */
.close { text-align: center; }
.close .who { max-width: 58ch; margin: 0 auto 34px; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.close .line { max-width: 30ch; margin: 0 auto 21px; font-size: 34px; line-height: 1.2; text-wrap: balance; }
.btn { display: inline-block; padding: 13px 34px; border-radius: 4px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: 19px; }
.btn:hover { filter: brightness(1.12); }
.phone { margin: 13px 0 0; }
.phone a { color: var(--muted); text-decoration: none; }

/* Two small advertisements, side by side. One shape (about two and a
   half times as wide as tall), each with its own colors, which stay the
   same in light and dark because an ad keeps its own look. */
.ads { margin-top: 55px; padding-top: 21px; border-top: 1px solid var(--edge); }
.ads-label { margin: 0 0 13px; text-align: center; font-variant: small-caps; letter-spacing: .14em; font-size: 14px; color: var(--muted); }
.ads-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.ad { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: center; min-height: 190px; border-radius: 4px; overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.ad:hover { transform: translateY(-2px); }
.ad:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ad-text { display: grid; gap: 5px; padding: 21px 21px 21px 0; }
.ad-name { font-size: 34px; line-height: 1; }
.ad-line { font-size: 17px; line-height: 1.3; }
.ad-sub { font-size: 14px; line-height: 1.45; }
.ad-foot { margin-top: 5px; font-size: 13px; font-variant: small-caps; letter-spacing: .1em; }

.ad-ops { background: #16130f; border: 1px solid #c8a25c; color: #ece4d3; }
.ad-ops svg { width: 62%; height: auto; margin: 0 auto; color: #c8a25c; }
.ad-ops .ad-name b { font-weight: 400; color: #c8a25c; }
.ad-ops .ad-sub { color: #b3a891; }
.ad-ops .ad-foot { color: #c8a25c; }

.ad-boffo { background: #1c2628; border: 1px solid #1c2628; color: #efe7d6; }
.ad-boffo img { display: block; width: 100%; height: 100%; object-fit: cover; align-self: stretch; }
.ad-boffo .ad-text { padding-left: 21px; }
.ad-boffo .ad-name { font-family: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; font-weight: 500; font-size: 42px; color: #e3897b; }
.ad-boffo .ad-line { font-style: italic; }
.ad-boffo .ad-sub { color: #b9b3a4; }
.ad-boffo .ad-foot { color: #e3897b; }

/* The foot */
.foot { border-top: 1px solid var(--edge); color: var(--muted); font-size: 15px; }
.foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 21px; padding-top: 21px; padding-bottom: 34px; }

@media (max-width: 760px) {
  .opening h1 { font-size: 34px; }
  .faults { grid-template-columns: 1fr; }
  .ads-pair { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer img { max-width: 260px; margin: 0 auto; }
  .close .line { font-size: 26px; }
  .part { margin-top: 34px; padding-top: 34px; }
}
