/* Preservation, house styles.
   Follows modernism.ltd and jefferyholley.com: Fraunces for display, Alegreya for everything else,
   navy ink on Marshmallow cream, one reading column. Preservation teal is the imprint color. */

:root {
  --paper: #F1EEE3;
  --ink: #1F3242;
  --muted: #56636D;
  --mark: #237D7A;      /* Preservation imprint color, for the mark */
  --accent: #1C6866;    /* the same teal, deepened so small text clears 4.5:1 on the cream */
  --rule: #D6D0C1;
  --panel: #F8F6EF;
  color-scheme: light;
  --display: "Fraunces", Alegreya, Georgia, "Times New Roman", serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --column: 40rem;
  --wide: 52rem;
}
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  padding: 0 20px;
}
.wrap { max-width: var(--column); margin: 0 auto; padding-block: 3rem 5rem; display: grid; gap: 4.5rem; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 50; font-weight: 500; text-wrap: balance; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 7vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
section, header, footer, .page-head { display: grid; gap: 1.1rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lede { font-size: 1.3rem; color: var(--muted); }
.byline { font-size: 1rem; color: var(--muted); }
.imprint { font-family: var(--display); font-variation-settings: "SOFT" 50; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }

/* Masthead */
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; }
.brand .imprint { font-size: 1.5rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; font-size: 1rem; }
.site-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"], .site-nav a.here { border-bottom-color: var(--mark); }

/* Figures */
figure { margin: 0; display: grid; gap: 0.5rem; }
figure img { display: block; width: 100%; }
figcaption { font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.figure-wide { width: min(var(--wide), calc(100vw - 40px)); justify-self: center; }

blockquote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--mark); font-family: var(--display); font-variation-settings: "SOFT" 50; font-size: 1.45rem; line-height: 1.35; font-weight: 400; font-style: italic; }
blockquote cite { display: block; margin-top: 0.6rem; font-family: var(--body); font-style: normal; font-size: 1rem; color: var(--muted); }

/* Lists of things to read */
.types { display: grid; margin-top: 0.5rem; }
.type { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.type:last-child { border-bottom: 1px solid var(--rule); }
.type a { font-weight: 500; }
.type span { color: var(--muted); }

.story-link { display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: 1.5rem; align-items: start; }
.story-link + .story-link { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.story-link img { display: block; width: 100%; aspect-ratio: 1.1; object-fit: cover; }
.story-link h3 { font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin: 0 0 .35rem; }
.story-link h3 a { color: inherit; text-decoration: none; }
.story-link h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.story-link time, .story-link .where { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: .5rem; }
.story-link p { color: var(--muted); font-size: 1.05rem; }
.read-on { display: inline-block; margin-top: .6rem; }

/* The firm */
.people { display: grid; gap: 1.4rem; margin-top: 0.5rem; }
.person { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.person .role { font-size: 0.95rem; color: var(--muted); padding-top: 0.15rem; }
.person h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.person p { font-size: 1.05rem; }
.contact { background: var(--panel); padding: 1.4rem 1.5rem; display: grid; gap: 0.5rem; }
.contact .addr { font-size: 1.25rem; font-weight: 500; }

/* Affiliations */
.logos { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1.6rem 1.4rem; align-items: center; }
.logos li { display: flex; align-items: center; justify-content: center; height: 5.5rem; }
.logos img { max-height: 5.5rem; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* Articles */
.article { display: grid; gap: 1.15rem; }
.article h2 { font-size: clamp(1.35rem, 3.6vw, 1.6rem); margin-top: 1.3rem; }
.article h3 { font-size: 1.15rem; margin-top: 0.6rem; }
.article figure { margin: 1rem 0; }
.article .source { font-size: 0.98rem; overflow-wrap: anywhere; }
.article .revision { font-size: 0.95rem; color: var(--muted); margin-top: 0.8rem; }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1rem; }
.plates figure { margin: 0; }
.plates img { aspect-ratio: 4 / 3; object-fit: cover; }
.back { font-size: 1rem; }

/* Embedded documents and story maps */
.embed { width: min(820px, calc(100vw - 40px)); justify-self: center; display: grid; gap: 0.6rem; }
.embed iframe { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.embed.map iframe { height: min(80vh, 760px); min-height: 500px; }
.embed .open { font-size: 1rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 1rem; }

/* Footer */
.site-footer { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1.5rem; gap: 0.9rem; }
.site-footer strong, .site-footer .imprint { color: var(--ink); }
.site-footer .imprint { font-size: 1.05em; }
.site-footer .sisters { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .wrap { padding-top: 2rem; gap: 3.5rem; }
  .person, .type { grid-template-columns: 1fr; gap: 0.2rem; }
  .story-link { grid-template-columns: 1fr; gap: 0.9rem; }
  .story-link img { aspect-ratio: 1.8; }
  .plates { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1rem; }
  .logos li { height: 4.2rem; }
  .logos img { max-height: 4.2rem; }
}

/* Imprint rows, matching the jefferyholley.com home page */
.imprints { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.imprint-row { position: relative; overflow: hidden; display: grid; grid-template-columns: 5rem minmax(0,1fr); gap: 1.5rem; padding: 2rem 0; align-items: start; }
.imprint-drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; pointer-events: none; z-index: 0; }
.imprint-mark { position: relative; z-index: 1; width: 3rem; height: auto; margin-top: .3rem; justify-self: center; }
.imprint-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.imprint-text h3 { margin: 0; font-size: 1.9rem; line-height: 1.1; }
.imprint-tagline { font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--muted); }
.imprint-link { align-self: flex-start; color: var(--ink); text-decoration: none; border-bottom: 1px solid #A8ADB3; padding-bottom: 2px; overflow-wrap: anywhere; }
.imprint-link:hover { color: var(--mark); }
@media (max-width: 560px) {
  .imprint-row { grid-template-columns: 3.4rem minmax(0,1fr); gap: 1rem; padding: 1.6rem 0; }
  .imprint-drawing { opacity: .12; }
  .imprint-mark { width: 2.4rem; }
  .imprint-text h3 { font-size: 1.6rem; }
  .imprint-tagline { font-size: 1.1rem; }
}
