/* Local replica of charldettmer.com
   Spacing matched from live Squarespace site.css + Distance gallery attrs:
   header pad 1.8vw / 2vw, nav pad-left 3.5vw
   gallery: inset, 2 columns, aspect four-three, data-gutter 119 (~60px)
*/

:root {
  --bg: #ffffff;
  /* live palette accent / solid header nav: --accent-hsl:0,0%,40.39% */
  --ink: #676767;
  --page-pad: 2vw; /* live --pagePadding */
  --header-pad-y: 1.8vw; /* live .header-announcement-bar-wrapper */
  --nav-pad-left: 3.5vw; /* live .header-layout-nav-right .header-nav */
  --nav-item-gap: 1.6vw; /* live .header-nav-item:not(:first-child) margin-left */
  --max: 1340px; /* live --maxPageWidth */
  /* live GalleryGrid: gap = data-gutter / 20 → vw (119 → 5.95vw) */
  --gallery-gap: 5.95vw;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Almarai", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.65; }

/* Squarespace: .header .header-announcement-bar-wrapper */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--header-pad-y) var(--page-pad);
  box-sizing: border-box;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  flex: 0 1 auto;
}

/* Squarespace: .header-layout-nav-right .header-nav */
.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
  margin-left: auto;
  padding-left: var(--nav-pad-left);
  text-align: right;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.5;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0;
}

.nav-desktop a:not(:first-child) {
  margin-left: var(--nav-item-gap);
}

.nav-desktop a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: -0.8rem;
  z-index: 20;
  min-width: 12rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--ink);
  background: #fff;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a,
.publication-shell .nav-desktop .nav-dropdown-menu a {
  display: block;
  margin: 0;
  white-space: nowrap;
}

.nav-dropdown summary[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.menu-toggle span {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 50%;
  height: 1.5px;
  margin-top: -4px;
  background: var(--ink);
  box-shadow: 0 7px 0 var(--ink);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  padding: var(--header-pad-y) var(--page-pad);
}
.mobile-nav.open { display: block; }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-links {
  min-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  font-size: 1.05rem;
}
.close-menu {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Shared publication typography used by the redesigned Photography and About pages. */
.publication-shell {
  --ink: #000;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.publication-shell .site-header {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 1.4rem clamp(1.25rem, 3.4vw, 3.75rem);
}

.publication-shell .brand {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.45vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.publication-shell .nav-desktop {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.publication-shell .nav-desktop > * {
  display: inline-flex;
  align-items: center;
  color: #000;
  padding: 0.1em 0;
}

.publication-shell .nav-desktop > * + * {
  margin-left: clamp(0.85rem, 2vw, 1.8rem);
}

.publication-shell .nav-desktop a:not(:first-child) {
  margin-left: clamp(0.85rem, 2vw, 1.8rem);
}

.publication-shell .mobile-nav {
  font-family: var(--sans);
}

.publication-shell .mobile-nav-links {
  color: #000;
  font-size: 1.125rem;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Home hero */
.hero {
  display: flex;
  justify-content: center;
  padding: 2.5vw var(--page-pad) 4vw;
}
.hero img {
  width: min(100%, 920px);
}

/* Distance gallery — Squarespace gallery-grid inset + four-three */
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--page-pad);
}

.gallery-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
  width: 100%;
}

.gallery-grid-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

/* Equal tiles: aspect-ratio four-three (padding-bottom 75%) + cover crop */
.gallery-grid-item-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* data-aspect-ratio="four-three" */
  overflow: hidden;
}

.gallery-grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5vw var(--page-pad) 4vw;
}
.about-copy {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  padding-top: 0.35rem;
}
.publication-shell .about-copy {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}
.about-copy p { margin: 0 0 1.55rem; }
.about-copy a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
.about-portrait {
  display: flex;
  justify-content: flex-end;
}
.about-portrait img {
  width: min(100%, 460px);
}

.site-footer {
  width: 100%;
  padding: 0.5rem var(--page-pad) 2.75rem;
  display: flex;
  justify-content: center;
}
.site-footer a {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-footer svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* Letters */
.letters-page {
  --letter-width: 660px;
  --letter-paper: #fbfaf7;
  --letter-ink: #373835;
  --letter-soft: #6f706c;
  --letter-rule: #d9d6ce;
  background: var(--letter-paper);
  color: var(--letter-ink);
}

.letters-main,
.letter-article {
  width: min(100% - (2 * var(--page-pad)), var(--letter-width));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 7rem);
}

.letters-heading {
  max-width: 620px;
  margin-bottom: clamp(3.5rem, 8vw, 5rem);
}

.letters-landing[data-layout="compact"] {
  padding-top: clamp(4rem, 8vw, 6.5rem);
}

.letters-landing[data-layout="compact"] .letters-heading {
  margin-bottom: clamp(3.5rem, 7vw, 4.5rem);
}

.letters-landing[data-layout="compact"] .letters-heading h1 {
  margin-bottom: 1.25rem;
}

.letters-heading h1,
.letter-article h1,
.quiet-result h1 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.letters-landing .letters-heading h1 {
  font-size: clamp(2.85rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.letters-heading > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0;
  color: var(--letter-soft);
  line-height: 1.65;
}

.letters-landing .letters-heading > p:not(.eyebrow) {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow a,
.text-link,
.letter-link a,
.letter-back a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.series-index {
  border-top: 1px solid var(--letter-rule);
}

.series-row {
  padding: 2.5rem 0 2.65rem;
  border-bottom: 1px solid var(--letter-rule);
}

.series-row h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.series-description {
  max-width: 570px;
  margin: 0 0 1.1rem;
  color: var(--letter-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.series-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  font-size: 0.75rem;
}

.series-meta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.series-meta span {
  color: var(--letter-soft);
  text-align: right;
}

.series-count,
.series-finite,
.letter-empty,
.form-note,
.draft-label {
  color: #888;
  font-size: 0.82rem;
}

.letter-signup {
  max-width: 590px;
  margin-top: 2.5rem;
}

.letters-main > .letter-signup {
  margin-bottom: clamp(4.5rem, 9vw, 7rem);
}

.letter-signup label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.letter-signup-row {
  border: 1px solid #bdbab2;
  border-radius: 4px;
  background: #fff;
}

.letter-signup input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--letter-ink);
  font: inherit;
  padding: 0.95rem 0.9rem;
  outline: none;
}

.letter-signup-row:focus-within {
  border-color: var(--letter-ink);
}

.letter-signup-button {
  display: block;
  min-width: 220px;
  min-height: 50px;
  margin: 1.75rem auto 0;
  border: 1px solid #3f403d;
  border-radius: 6px;
  background: #3f403d;
  box-shadow: 0 4px 0 #171816;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
}

.quiet-button,
.preference-form button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.8rem 0 0.8rem 1.5rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.letter-signup-button:disabled,
.quiet-button:disabled,
.preference-form button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note,
.form-response {
  margin: 0.7rem 0 0;
  line-height: 1.5;
}

.form-response {
  min-height: 1.5em;
  font-size: 0.85rem;
}

.letters-subscribe {
  margin-top: clamp(4.5rem, 9vw, 5rem);
  padding: clamp(3rem, 6vw, 3.75rem) 0;
  border-top: 1px solid var(--letter-rule);
  border-bottom: 1px solid var(--letter-rule);
  text-align: center;
}

.letters-subscribe h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.letters-subscribe > p {
  max-width: 500px;
  margin: 0 auto 2rem;
  color: var(--letter-soft);
  font-family: var(--serif);
  line-height: 1.6;
}

.letter-signup-landing {
  margin: 0 auto;
  text-align: left;
}

.letters-subscribe .letter-signup {
  margin: 0 auto;
  text-align: left;
}

.series-choices {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.series-choices legend {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.letter-signup .series-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.7rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.series-choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.08rem 0 0;
  accent-color: #3f403d;
}

.series-choice span,
.series-choice small {
  display: block;
}

.series-choice small {
  margin-top: 0.1rem;
  color: var(--letter-soft);
  font-size: 0.78rem;
}

.letters-subscribe .form-note,
.letters-subscribe .form-response {
  text-align: center;
}

.letter-list {
  list-style: none;
  margin: 0 0 clamp(5rem, 10vw, 8rem);
  padding: 0;
}

.letter-list li {
  padding: 1.5rem 0;
  border-top: 1px solid #e3e3e3;
}

.letter-list li:last-child { border-bottom: 1px solid #e3e3e3; }

.letter-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.letter-list a > span { display: block; }

.letter-list a small {
  display: block;
  margin-bottom: 0.42rem;
  color: #909090;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.letter-list time {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: #888;
}

.letter-list p {
  max-width: 570px;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.letter-article {
  width: 100%;
  padding-top: 0;
}

.letter-article article {
  max-width: none;
  margin: 0 auto;
}

.letter-article-column {
  width: min(100% - (2 * var(--page-pad)), var(--letter-width));
  margin: 0 auto;
}

.letter-article-header {
  margin: 0;
  padding: clamp(4rem, 8vw, 5rem) 0 0;
  text-align: left;
}

.letter-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.4rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--letter-rule);
}

.letter-masthead .eyebrow {
  margin-bottom: 0.25rem;
}

.letter-publication {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
}

.letter-meta {
  margin: 0;
  color: var(--letter-soft);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: right;
}

.letter-publication a,
.letter-pagination a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.letter-article .letter-article-header h1 {
  margin-bottom: 0.95rem;
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.letter-deck {
  max-width: 610px;
  margin: 0;
  color: var(--letter-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.letter-heading-rule {
  width: 96px;
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--letter-rule);
}

.letter-hero {
  width: 100%;
  margin: 0 0 2.4rem;
}

.letter-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.letter-body {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 1.4vw, 1.08rem);
  line-height: 1.68;
}

.letter-body p,
.letter-body ul,
.letter-body ol,
.letter-body blockquote {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.letter-body h2,
.letter-body h3 {
  margin: 2.8rem 0 1rem;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.3;
}

.letter-body h2 { font-size: 1.24em; }
.letter-body h3 { font-size: 1.08em; }

.letter-body hr {
  width: 96px;
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--letter-rule);
}

.letter-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.letter-body blockquote {
  padding-left: 1.35rem;
  border-left: 1px solid #bdbdbd;
  font-family: var(--serif);
  font-style: italic;
}

.letter-signature {
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.letter-issue-signup {
  margin-top: clamp(4rem, 8vw, 5rem);
}

.letter-issue-signup .letter-signup {
  margin-top: 0;
}

.letter-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 3.8rem;
}

.letter-pagination a {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.55;
}

.letter-pagination a[rel="next"] { text-align: right; }

.letter-pagination small {
  display: block;
  margin-bottom: 0.35rem;
  color: #888;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.letter-back {
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e3e3;
  font-size: 0.82rem;
}

.quiet-result {
  max-width: 590px;
  margin-left: var(--page-pad);
}

.quiet-result > p {
  line-height: 1.7;
}

.quiet-button,
.preference-form button {
  margin-top: 1rem;
  padding-left: 0;
}

.preference-form {
  margin-top: 2rem;
}

.preference-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid #e3e3e3;
  cursor: pointer;
}

.preference-choice:last-child { border-bottom: 1px solid #e3e3e3; }
.preference-choice input { margin-top: 0.2rem; }
.preference-choice strong { display: block; font-weight: 400; }
.preference-choice small { display: block; margin-top: 0.3rem; color: #888; line-height: 1.5; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #777;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.5rem;
}
.lightbox-close { top: 1rem; right: 1.1rem; }
.lightbox-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  :root {
    --page-pad: 6vw;
    --header-pad-y: 6vw;
    /* keep gutter formula; slightly tighter feel on narrow screens is fine */
  }
  .nav-desktop { display: none; }
  .mobile-nav-links .nav-dropdown { text-align: center; }
  .mobile-nav-links .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    text-align: center;
    transform: none;
  }
  .menu-toggle { display: inline-block; }
  .brand { font-size: 1rem; } /* mobile site title uses normal text size on live */
  .gallery-grid-wrapper { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { justify-content: flex-start; }
  .about-portrait img { width: 100%; max-width: none; }
  .letters-main { padding-top: 3rem; }
  .letter-article-header { padding: 3rem 0 0; }
  .letter-article-column { width: min(100% - (2 * var(--page-pad)), var(--letter-width)); }
  .letter-pagination { gap: 1.25rem; }
  .letter-list a { display: block; }
  .letter-list time { display: block; margin-top: 0.45rem; }
  .series-meta { display: block; }
  .series-meta span { display: block; margin-top: 0.55rem; text-align: left; }
  .letter-signup-button { width: 100%; min-width: 0; }
  .quiet-result { margin-left: auto; }
}
