:root {
  --paper: #f9f6f2;
  --ink: #17191b;
  --muted: #8d908f;
  --rule: #d7d3ce;
  --canvas: 760px;

  --masthead-left: 34px;
  --copy-left: 252px;
  --nav-width: 200px;
  --content-right: 452px;
}

/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* =========================================================
   SITE CANVAS
   ========================================================= */

.site-canvas {
  position: relative;
  width: var(--canvas);
  min-height: 900px;
  background: var(--paper);
}

/*
 * Homepage uses flex only so the editable quote/caption
 * participates in document flow after .home-copy.
 *
 * The heading and hero remain absolutely positioned.
 */
.home-canvas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================================================
   MASTHEAD
   ========================================================= */

.site-heading {
  position: absolute;
  z-index: 5;
  top: 54px;
  left: var(--masthead-left);

  display: grid;
  grid-template-columns: 190px 125px;
  gap: 42px;
  align-items: start;
}

.masthead {
  display: block;
  margin: 0;

  color: var(--ink);
  font-family: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 51px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.7px;
  text-decoration: none;
  text-transform: uppercase;
}

.identity-labels {
  margin-top: 30px;

  color: var(--muted);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 1.4px;
}

.identity-labels span {
  display: block;
  width: max-content;
  padding: 0 2px;
  border-top: 1px solid #c9c6c2;
}

.identity-labels span:last-child {
  border-bottom: 1px solid #c9c6c2;
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

/* One authoritative desktop hero geometry and silhouette. */
.hero-oval {
  position: absolute;
  z-index: 1;

  top: 182px;
  left: 0;

  width: 220px;
  height: 530px;

  overflow: hidden;
  background: #e7e2dc;
  border-radius: 0;
  clip-path: path("M 0 0 C 82 0 160 28 198 102 C 210 130 214 154 214 188 L 214 330 C 214 360 198 392 170 420 C 142 448 96 490 28 520 C 14 526 6 529 0 530 L 0 0 Z");
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
}

/* =========================================================
   HOMEPAGE COPY
   ========================================================= */

.home-copy {
  order: 1;
  position: relative;
  z-index: 4;

  width: var(--nav-width);

  /*
   * Heading/hero are absolute, so this top margin establishes
   * the editorial copy position in normal flow.
   */
  margin: 304px 0 0 var(--copy-left);
}

.main-statement {
  width: 166px;
  margin: 0 0 42px;

  font-size: 29px;
  line-height: 1.02;
  letter-spacing: -0.45px;
}

/* =========================================================
   HOMEPAGE EDITORIAL FOOTER / QUOTE
   ========================================================= */

/*
 * This is deliberately NOT absolutely positioned.
 *
 * It follows .home-copy in flex order, so expanding a submenu
 * makes the homepage taller and pushes this quote downward.
 *
 * Its right edge aligns with the right edge of the nav rules:
 *
 * 34px left + 418px width = 452px
 * 252px nav left + 200px nav width = 452px
 */
.hero-caption {
  order: 2;
  position: static;
  z-index: 2;

  width: 418px;
  margin: 38px 0 0 var(--masthead-left);
  padding: 0 0 64px;

  color: var(--muted);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.home-navigation {
  width: var(--nav-width);
}

.editorial-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.editorial-menu > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.editorial-menu a,
.editorial-menu .contact-open {
  display: flex;
  width: 100%;
  min-height: 39px;

  align-items: center;
  gap: 8px;

  padding: 7px 1px;

  border: 0;
  background: transparent;
  color: var(--ink);

  cursor: pointer;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;

  white-space: nowrap;
}

.editorial-menu .nav-arrow {
  flex: 0 0 auto;
  margin-left: auto;

  color: #7d8588;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

/*
 * The actual submenu button remains for accessibility and JS,
 * but the plus/minus glyph is visually suppressed.
 *
 * We should also remove the glyph at the PHP/JS source later.
 */
.submenu-toggle {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 0;

  width: 30px;
  height: 32px;
  padding: 0;

  border: 0;
  background: transparent;
  color: transparent;

  cursor: pointer;
}

.submenu-toggle > span {
  display: none;
}

.menu-item-has-children > a {
  padding-right: 30px;
}

/* =========================================================
   SUBMENUS
   ========================================================= */

.sub-menu {
  display: none;

  width: max-content;
  min-width: 100%;

  margin: 0;
  padding: 0 0 6px 14px;

  list-style: none;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.submenu-open > .sub-menu {
  display: block;
}

.sub-menu li {
  width: max-content;
  min-width: 100%;
  border: 0;
}

.sub-menu a {
  width: max-content;
  min-width: 100%;
  min-height: 29px;

  color: #4c5152;
  font-size: 13px;

  white-space: nowrap;
}

/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.social-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;

  padding: 4px;

  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);

  fill: currentColor;
  object-fit: contain;
}

.social-icon-custom {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.social-icon-custom img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

/* =========================================================
   INTERIOR PAGES
   ========================================================= */

.interior-canvas {
  min-height: 900px;
}

.interior-canvas .site-heading {
  grid-template-columns: 190px 220px;
}

.interior-navigation {
  width: 220px;
  margin-top: 22px;
}

.interior-navigation .editorial-menu a,
.interior-navigation .editorial-menu .contact-open {
  min-height: 25px;

  padding: 3px 0;

  color: var(--muted);

  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;

  white-space: nowrap;
}

.interior-navigation .nav-arrow {
  font-size: 10px;
}

.interior-navigation .submenu-toggle {
  top: 0;
  right: 0;
  height: 24px;
}

/*
 * Same basic ellipse as homepage, pushed much farther left
 * so interior pages show only a narrow curved sliver.
 */
.interior-hero {
  top: 210px;
  left: -335px;

  width: 390px;
  height: 450px;

  border-radius: 50%;
}

/*
 * Wider than the original 285px.
 * 250px + 420px = 670px, leaving ~90px of breathing room
 * inside the 760px canvas.
 */
.page-content {
  position: relative;
  z-index: 3;

  width: 420px;
  margin: 302px 0 100px 250px;
}

.page-title {
  margin: 0 0 24px;

  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.entry-content,
.page-content > p {
  overflow-wrap: break-word;

  font-size: 17px;
  line-height: 1.58;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin: 2em 0 0.55em;

  font-size: 26px;
  line-height: 1.15;
}

.entry-content h3 {
  margin: 1.7em 0 0.5em;

  font-size: 20px;
  line-height: 1.2;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
  margin: 0 0 1.3em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content blockquote {
  margin-left: 0;
  padding-left: 18px;

  border-left: 2px solid var(--rule);

  color: #4d504f;
  font-style: italic;
}

.entry-content hr {
  margin: 2.2em 0;

  border: 0;
  border-top: 1px solid var(--rule);
}

.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;

  overflow-x: auto;

  border-collapse: collapse;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 8px 6px;

  border-bottom: 1px solid var(--rule);

  text-align: left;
  vertical-align: top;
}

/* =========================================================
   CONTACT MODAL
   ========================================================= */

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;

  display: grid;
  place-items: center;
}

.contact-backdrop {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  padding: 0;

  border: 0;
  background: rgba(23, 25, 27, 0.35);

  cursor: default;
}

.contact-dialog {
  position: relative;
  z-index: 1;

  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);

  overflow: auto;

  padding: 40px;

  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(23, 25, 27, 0.18);
}

.contact-dialog h2 {
  margin: 0 0 8px;

  font-size: 31px;
  font-weight: 400;
}

.contact-intro {
  margin: 0 0 26px;

  color: var(--muted);
  font-size: 15px;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 14px;

  border: 0;
  background: transparent;

  font-family: Arial, sans-serif;
  font-size: 26px;

  cursor: pointer;
}

.contact-form label {
  display: block;
  margin: 0 0 18px;

  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;

  margin-top: 6px;
  padding: 10px;

  border: 1px solid #aaa7a3;
  border-radius: 0;

  background: transparent;
  color: var(--ink);
}

.contact-form button[type="submit"] {
  padding: 9px 18px;

  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);

  cursor: pointer;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.contact-status {
  min-height: 1.4em;
  margin: 14px 0 0;

  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 759px) {

  .site-canvas {
    width: 100%;
    min-height: 100vh;
  }

  /* =======================================================
     HOMEPAGE MOBILE
     ======================================================= */

  .home-canvas {
    --mobile-hero-column: clamp(132px, 42vw, 180px);

    display: grid;
    grid-template-columns:
      var(--mobile-hero-column)
      minmax(0, 1fr);
    grid-template-rows: auto auto auto;

    align-items: start;

    width: 100%;
    min-height: 100vh;
  }

  /* Masthead */

  .home-canvas .site-heading {
    position: static;
    z-index: 5;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    grid-column: 1 / -1;
    grid-row: 1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 18px;
    align-items: start;

    margin: 28px 20px 0;
  }

  .home-canvas .masthead {
    font-size: clamp(40px, 12vw, 50px);
    line-height: 0.98;
  }

  .home-canvas .identity-labels {
    margin-top: 10px;

    font-size: 9px;
    line-height: 1.45;
    letter-spacing: 1px;
  }

  /* Hero */

  .home-canvas .hero-oval {
    position: relative;
    z-index: 1;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    grid-column: 1;
    grid-row: 2;

    width: 220px;
    height: 530px;

    margin-top: 34px;
    margin-left: calc(var(--mobile-hero-column) - 220px);

    overflow: hidden;
    border-radius: 0;
  }

  .home-canvas .hero-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position:
      var(--hero-focus-x, 50%)
      var(--hero-focus-y, 50%);
  }

  /* Statement + navigation */

  .home-canvas .home-copy {
    order: initial;

    position: relative;
    z-index: 4;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    grid-column: 2;
    grid-row: 2;

    width: auto;
    margin: 98px 18px 0 0;
  }

  .home-canvas .main-statement {
    width: auto;
    margin: 0 0 34px;

    font-size: clamp(22px, 6.6vw, 28px);
    line-height: 1.03;
    letter-spacing: -0.35px;
  }

  .home-canvas .home-navigation {
    width: 100%;
  }

  .home-canvas .editorial-menu a,
  .home-canvas .editorial-menu .contact-open {
    min-height: 40px;

    font-size: 14px;
    line-height: 1.15;

    white-space: nowrap;
  }

  .home-canvas .editorial-menu .nav-arrow {
    margin-left: auto;
  }

  .home-canvas .submenu-toggle {
    right: 0;
  }

  /* Mobile submenu */

  .home-canvas .sub-menu {
    width: 100%;
    min-width: 0;

    padding-left: 10px;
  }

  .home-canvas .sub-menu li {
    width: 100%;
    min-width: 0;
  }

  .home-canvas .sub-menu a {
    width: 100%;
    min-width: 0;

    white-space: normal;
  }

  /* Homepage footer / quote */

  .home-canvas .hero-caption {
    order: initial;
    position: static;

    grid-column: 1 / -1;
    grid-row: 3;

    width: auto;

    margin: 28px 22px 0;
    padding: 0 0 52px;

    font-size: 9px;
    line-height: 1.65;
    letter-spacing: 1.6px;
  }

/* =======================================================
   INTERIOR MOBILE
   ======================================================= */

.interior-canvas {
  width: 100%;
  min-height: 100vh;
}

/*
 * On mobile, stop using the desktop masthead/nav side-by-side
 * composition. Put the entire header into normal flow.
 */
.interior-canvas .site-heading {
  position: static !important;

  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  display: block;

  width: auto;
  margin: 28px 22px 0;
}

/* Masthead gets its own row. */
.interior-canvas .masthead {
  display: block;
  width: max-content;
  max-width: 100%;

  margin: 0 0 28px;

  font-size: clamp(40px, 12vw, 50px);
  line-height: 0.98;
}

/*
 * Interior navigation becomes a compact two-column block
 * beneath the masthead.
 */
.interior-navigation {
  width: 100%;
  margin: 0;
}

.interior-navigation .editorial-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.interior-navigation .editorial-menu > li {
  min-width: 0;
}

.interior-navigation .editorial-menu a,
.interior-navigation .editorial-menu .contact-open {
  min-height: 34px;

  padding: 6px 0;

  font-size: 9px;
  line-height: 1.2;

  white-space: nowrap;
}

.interior-navigation .nav-arrow {
  margin-left: auto;
}

/*
 * If an interior nav item has children, let its submenu
 * occupy the full width below that item.
 */
.interior-navigation .sub-menu {
  grid-column: 1 / -1;

  width: 100%;
  min-width: 0;

  padding-left: 8px;
}

.interior-navigation .sub-menu li,
.interior-navigation .sub-menu a {
  width: 100%;
  min-width: 0;
}

.interior-navigation .sub-menu a {
  white-space: normal;
}

/*
 * Keep the image as a decorative sliver.
 * It does not control the document flow.
 */
.interior-hero {
  position: absolute;

  top: 245px;
  left: -175px;

  width: 220px;
  height: 530px;

  max-height: none;
}

/*
 * Content now follows the header naturally.
 * No 170px/300px desktop-style spacer.
 */
.page-content {
  position: relative;
  z-index: 3;

  width: auto;

  margin: 54px 24px 80px 78px;
}

.page-title {
  margin: 0 0 28px;

  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.05;
}

.entry-content,
.page-content > p {
  font-size: 16px;
  line-height: 1.55;
}





/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

  .home-canvas .site-heading {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 14px;

    margin-right: 18px;
    margin-left: 18px;
  }

  .home-canvas .masthead {
    font-size: clamp(38px, 12vw, 48px);
  }

  .home-canvas .identity-labels {
    margin-top: 9px;

    font-size: 8px;
    letter-spacing: 0.85px;
  }

  .home-canvas .home-copy {
    margin-top: 90px;
    margin-right: 16px;
  }

  .home-canvas .main-statement {
    font-size: clamp(21px, 6.7vw, 26px);
  }

  .home-canvas .hero-caption {
    margin-right: 18px;
    margin-left: 18px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

