/* Hand-drawn edition: the handbook typography and content remain in handbook.css. */
:root {
  --ink-rule: url('/assets/ink-rule.svg');
  --ink-frame: url('/assets/ink-frame.svg');
}

/* These small SVGs are irregular line geometry for rules and frames. */
.navigation {
  border: 0;
  padding-block: 20px;
  background-image: var(--ink-rule), var(--ink-rule);
  background-position: center top, center bottom;
  background-size: 100% 14px;
  background-repeat: no-repeat;
}

.harbor-line .wrap {
  border-bottom: 0;
  background: var(--ink-rule) center bottom / 100% 9px no-repeat;
}

.hero { padding-block: 42px 45px; }
.hero-art {
  border: 14px solid transparent;
  border-image: var(--ink-frame) 30 / 14px / 0 stretch;
  padding: 18px 20px 12px;
  align-self: center;
}
.hero-art img { max-height: 430px; }
.hero-art figcaption { margin-top: 12px; }
.figure-note {
  font-size: .8rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
  margin: 10px 3px 0;
}
.principles {
  border: 0;
  padding-block: 24px;
  background: var(--ink-rule) center top / 100% 12px no-repeat,
    var(--ink-rule) center bottom / 100% 12px no-repeat;
}
.principle + .principle { border-left: 0; }
.index { font-weight: 400; }

.button {
  border: 10px solid transparent;
  border-image: var(--ink-frame) 30 / 10px / 0 stretch;
  padding: .3rem .65rem;
  color: var(--ink);
  background: transparent;
}
.button:hover, .button.gold:hover {
  background: #e9e2d2;
  color: var(--deep);
}
.button.gold { border-color: transparent; }

.inspection-entries li, .check-list li, .contact-method {
  border: 0;
  background: var(--ink-rule) center bottom / 100% 8px no-repeat;
}
.check-list li { padding-block: 24px; }
.check-list li:first-child { padding-top: 0; }
.margin-note {
  border: 0;
  padding: 20px 0 0 18px;
  background: var(--ink-rule) center top / 100% 9px no-repeat;
}
.hardware-plate {
  border: 12px solid transparent;
  border-image: var(--ink-frame) 30 / 12px / 0 stretch;
  padding: 12px 10px;
}
.hardware-plate figcaption {
  border: 0;
  background: var(--ink-rule) center top / 100% 7px no-repeat;
  padding-top: 15px;
}
.owner-section {
  border: 0;
  background: var(--ink-rule) center top / min(1120px, calc(100% - 88px)) 15px no-repeat,
    var(--ink-rule) center bottom / min(1120px, calc(100% - 88px)) 15px no-repeat;
}
.owner-copy { padding: 10px 0 0; }
.page-heading, .about-values, .site-footer, .quiet-band, .process-step {
  border: 0;
  background: var(--ink-rule) center top / 100% 10px no-repeat;
}
.page-heading {
  background-position: center bottom;
}
.site-footer {
  background-size: min(1120px, calc(100% - 88px)) 12px;
}
.report-band {
  border: 0;
  background: var(--ink-rule) center top / min(1120px, calc(100% - 88px)) 12px no-repeat,
    var(--ink-rule) center bottom / min(1120px, calc(100% - 88px)) 12px no-repeat;
}
.report-note, .contact-prep, .about-hero figure {
  border: 14px solid transparent;
  border-image: var(--ink-frame) 30 / 14px / 0 stretch;
  outline: none;
}
.report-note { padding: 22px 25px; }
.contact-prep { padding: 23px; }
.about-hero figure { padding: 13px; }
.about-hero figcaption { padding: 15px 3px 3px; }
.portrait-caption { font-style: italic; }

/* A small new emblem complements the existing live-text masthead. */
.wordmark { display: flex; align-items: center; justify-content: center; gap: 19px; }
.masthead-mark { width: 54px; height: 73px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.masthead-title { display: block; }

/* A local harbor plate continues the figure system used for the hardware. */
.harbor-plate { margin: 0; padding-block: 8px 28px; }
.harbor-plate-inner {
  margin: 0;
  border: 15px solid transparent;
  border-image: var(--ink-frame) 30 / 15px / 0 stretch;
  padding: 19px 28px 14px;
}
.harbor-plate img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.harbor-plate figcaption {
  padding-top: 17px;
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  background: var(--ink-rule) center top / 70% 8px no-repeat;
}
.harbor-plate .figure-index { margin-right: .25rem; }

@media (max-width: 1000px) {
  .hero-art { padding: 14px 10px; }
  .contact-prep { padding: 18px; }
  .wordmark { gap: 14px; }
  .masthead-mark { width: 44px; height: 65px; }
}

@media (max-width: 700px) {
  .wordmark { gap: 10px; }
  .masthead-mark { width: 35px; height: 50px; }
  .masthead-title { min-width: 0; }
  .wordmark { font-size: clamp(1.45rem, 5.5vw, 2.3rem); }
  .wordmark small { font-size: .75rem; letter-spacing: .035em; }
  .menu-toggle {
    border: 0;
    padding-block: 14px;
    background: var(--ink-rule) center top / 100% 10px no-repeat,
      var(--ink-rule) center bottom / 100% 10px no-repeat;
  }
  .navigation { background-image: var(--ink-rule); background-position: center bottom; padding-block: 12px 20px; }
  .hero { padding-top: 28px; gap: 28px; }
  .hero-art { padding: 15px 12px 12px; border-width: 12px; }
  .hero-art img { max-height: 370px; }
  .hero-art figcaption { font-size: .825rem; }
  .principles { gap: 8px; padding-block: 22px; }
  .hardware-plate { max-width: 380px; }
  .contact-prep { padding: 17px; margin: 0; }
  .report-note { padding: 20px; margin: 0; }
  .owner-section, .site-footer, .report-band { background-size: calc(100% - 40px) 12px; }
  .harbor-plate { padding-bottom: 26px; }
  .harbor-plate-inner { padding: 9px 8px 12px; border-width: 12px; }
  .harbor-plate img { max-height: none; }
  .harbor-plate figcaption { font-size: .825rem; padding-top: 13px; background-size: 100% 8px; }
}
