/* -------------------------------------------------------------
   Tokens
------------------------------------------------------------- */
:root {
    /* Palette: colorhunt.co/palette/0000001f150c412d15e1dcc9 */
    --ink: #E1DCC9;                       /* text (cream) */
    --paper: #000000;                     /* page background (black) */
    --paper-dim: #1F150C;                 /* raised surfaces (dark brown) */
    --stone: rgba(225, 220, 201, 0.68);   /* secondary text (muted cream) */
    --hairline: #412D15;                  /* borders and dividers (medium brown) */
    --accent: #412D15;                    /* button fills, hover backgrounds */
    --gold: #E1DCC9;                      /* label and link text; brown is too dark to read on black */

    color-scheme: dark;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --wrap: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection {
    background: var(--accent);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 20px;
    z-index: 100;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

/* -------------------------------------------------------------
   Header / navigation
------------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--hairline);
    background: var(--paper);
    position: relative;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-header__mark {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
}

.site-header__logo {
    display: block;
    height: 156px;
    width: auto;
    max-width: 60vw;
}

.nav-toggle,
.search-toggle {
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle span:not(.nav-toggle__label) {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--ink);
}
.nav-toggle {
    flex-direction: column;
    gap: 3px;
    padding: 10px 16px;
}
.nav-toggle__label { display: none; }

.primary-nav {
    border-top: 1px solid var(--hairline);
    display: none;
}
.primary-nav.is-open { display: block; }

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 18px 32px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
}

.primary-nav__item > a {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.primary-nav__children {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.primary-nav__children a {
    font-size: 0.9rem;
    color: var(--stone);
}
.primary-nav__children a:hover { color: var(--ink); }

.site-search {
    display: none;
    border-top: 1px solid var(--hairline);
    padding: 18px 32px;
    gap: 12px;
    align-items: center;
}
.site-search.is-open { display: flex; }
.site-search label { font-size: 0.85rem; color: var(--stone); }
.site-search input {
    flex: 1;
    border: 1px solid var(--hairline);
    background: transparent;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}
.site-search button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--ink);
    padding: 10px 18px;
    cursor: pointer;
}

/* -------------------------------------------------------------
   Buttons / links
------------------------------------------------------------- */
.button {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: 12px 26px;
    font-size: 0.9rem;
    margin-top: 8px;
}
.button:hover {
    background: var(--accent);
    color: var(--ink);
}

/* -------------------------------------------------------------
   Hero
------------------------------------------------------------- */
.hero {
    padding: 56px 0 72px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero__image {
    margin: 0;
    position: relative;
}
.hero__image img {
    width: 100%;
    height: auto;
}
.hero__image figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: var(--paper);
    padding: 5px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--stone);
}

.hero__eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.hero__copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 22px;
}
.hero__copy h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.hero__copy blockquote {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--ink);
    max-width: 46ch;
}

/* -------------------------------------------------------------
   Pillar cards
------------------------------------------------------------- */
.pillars {
    background: var(--paper-dim);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 64px 0;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.pillar-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 18px;
}
.pillar-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-card__label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    margin: 0 0 8px;
}

.pillar-card h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.pillar-card h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.pillar-card p:last-child {
    color: var(--stone);
    font-size: 0.95rem;
    margin: 0;
}

/* -------------------------------------------------------------
   News grid
------------------------------------------------------------- */
.news { padding: 72px 0 96px; }

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 18px;
    margin-bottom: 40px;
}
.news__header h2 { margin: 0; font-size: 1.6rem; }
.news__header a {
    font-size: 0.9rem;
    color: var(--gold);
    white-space: nowrap;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 40px;
}

.news-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 16px;
}
.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card__image:hover img { transform: scale(1.03); }

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.news-card h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.news-card p {
    color: var(--stone);
    font-size: 0.95rem;
    margin: 0;
}
.news-card__date {
    font-size: 0.8rem !important;
    color: var(--stone);
    margin-bottom: 6px !important;
}
.news-card__more { color: var(--gold); }

/* -------------------------------------------------------------
   Entry / single page
------------------------------------------------------------- */
.entry-content {
    padding: 64px 0 96px;
    max-width: 760px;
}
.entry-content__eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.entry-content h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin-bottom: 24px;
}
.entry-content__hero {
    width: 100%;
    margin-bottom: 32px;
}
.entry-content__body p {
    margin: 0 0 1.3em;
    max-width: 68ch;
}
.entry-content__contacts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.archive-header {
    padding: 56px 0 8px;
    max-width: 640px;
}
.archive-header p { color: var(--stone); }
.news__grid--archive { padding: 40px 0 96px; }

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.site-footer {
    background: var(--paper-dim);
    color: var(--ink);
    padding-top: 64px;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
    flex-wrap: wrap;
}

.site-footer__mark {
    font-family: var(--font-display);
    font-size: 1.6rem;
}
.site-footer__mark span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--stone);
    margin-top: 6px;
}

.site-footer__faq {
    text-align: right;
}
.site-footer__faq span {
    display: block;
    font-size: 0.85rem;
    color: var(--stone);
    max-width: 32ch;
    margin-top: 4px;
}
.site-footer__faq:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.site-footer__contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--hairline);
}

.contact-block h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    margin-bottom: 12px;
}
.contact-block p {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: var(--ink);
}
.contact-block a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--stone);
    flex-wrap: wrap;
    gap: 12px;
}

.social-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.social-list a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* -------------------------------------------------------------
   Responsive
------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .pillars__grid { grid-template-columns: 1fr; gap: 40px; }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__contacts { grid-template-columns: repeat(2, 1fr); }
    .entry-content__contacts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    .news__grid { grid-template-columns: 1fr; }
    .site-footer__contacts { grid-template-columns: 1fr; }
    .site-footer__top { flex-direction: column; align-items: flex-start; }
    .site-footer__faq { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .news-card__image img { transition: none; }
}

/* -------------------------------------------------------------
   Portrait gallery + lightbox
------------------------------------------------------------- */
.portrait-grid {
    list-style: none;
    margin: 8px 0 40px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.portrait-grid__link {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-dim);
    cursor: zoom-in;
}
.portrait-grid__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.portrait-grid__link:hover img,
.portrait-grid__link:focus-visible img { transform: scale(1.04); opacity: 0.9; }
.portrait-grid__link:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    color: var(--ink);
}
.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox__img {
    max-width: min(80vw, 900px);
    max-height: 82vh;
    width: auto;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
    margin-top: 14px;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--stone);
}

.lightbox__close,
.lightbox__nav {
    background: none;
    border: 1px solid var(--hairline);
    color: var(--ink);
    cursor: pointer;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    flex: none;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); }
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 900px) {
    .portrait-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .portrait-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .lightbox[open] { flex-wrap: wrap; align-content: center; }
    .lightbox__figure { order: -1; width: 100%; }
    .lightbox__img { max-width: 92vw; max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
    .portrait-grid__link img { transition: none; }
}
