/*
Theme Name: ffeedd
Description: The storybook theme. Flat cyan and cream, one 2px carbon line, Besley and Jost. Separate from Chin Chin; reads the same Rolodex data.
Author: ffeedd
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ffeedd
*/

/* ═══ BRAND ═══ Change a value here and it changes everywhere. */
:root {
    --cyan:   #00CFFF;
    --cream:  #FFEEDD;
    --ink:    #0B0B0C;
    --ph:     #F3D9BF;   /* photo placeholder */
    --rule:   #CBB59E;   /* soft rule */
    --red:    #EB4637;   /* About and card pages only */
    --line:   2px solid var(--ink);

    --serif: 'Besley', Georgia, serif;
    --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;
    --mark:  'Frank Ruhl Libre', Georgia, serif;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.fd-wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 999; }
.fd-skip:focus { left: 8px; }
.fd-cyan { background: var(--cyan); }
/* ffeedd is always lower case, even inside uppercase labels. */
.fd-brand { text-transform: none; letter-spacing: 0.02em; }
.fd-footer-head .fd-brand { font-size: 14px; letter-spacing: 0.04em; }
.fd-card-body dt .fd-brand { font-size: 13px; }

/* Labels and small type */
.fd-kicker, .fd-meta, .fd-tag, .fd-textlink, .fd-button, .fd-crumbs, .fd-byline {
    font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}
.fd-kicker { display: block; margin: 0; }
.fd-meta { font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 15px; }
.fd-textlink { align-self: flex-start; border-bottom: var(--line); padding-bottom: 4px; }
.fd-textlink:hover { text-decoration: none; background: var(--ink); color: var(--cream); }
.fd-button { display: inline-block; background: var(--ink); color: var(--cream); padding: 15px 26px; border: var(--line); }
.fd-button:hover { text-decoration: none; background: var(--cyan); color: var(--ink); }
.fd-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 8px; }

/* Images and placeholders */
.fd-img { width: 100%; height: 100%; object-fit: cover; }
.fd-ph { display: block; background: var(--ph); }
.fd-round { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: var(--line); background: var(--ph); }
.fd-round .fd-img { height: 100%; }
.fd-figure { display: block; width: 100%; height: 100%; }
.fd-round .fd-figure { background: var(--ph); }

/* ═══ HEADER ═══ */
.fd-header { position: relative; z-index: 20; background: var(--cream); border-bottom: var(--line); }
.fd-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.fd-logo { flex: none; }
.fd-logo img { width: 155px; height: auto; }
.fd-nav { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-nav a { padding: 7px 12px; border: 2px solid transparent; }
.fd-nav a:hover { text-decoration: none; border-color: var(--ink); }
.fd-nav a[aria-current="page"] { background: var(--cyan); border-color: var(--ink); }
.fd-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fd-menu-btn { display: none; width: 48px; height: 48px; border: var(--line); background: var(--cream); align-items: center; justify-content: center; cursor: pointer; }
.fd-menu { border-top: var(--line); background: var(--cream); }
.fd-menu nav { display: flex; flex-direction: column; padding: 16px var(--gutter) 28px; }
.fd-menu a { font-family: var(--serif); font-weight: 600; font-size: 30px; padding: 6px 0; }
.fd-menu a.fd-menu-small { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 0; }
.fd-menu-rule { display: block; border-top: 1px solid var(--rule); margin: 14px 0 8px; }

/* ═══ SPREADS ═══ Book-page halves: one colour field, one photo. */
.fd-spread { display: flex; flex-wrap: wrap; border-bottom: var(--line); }
.fd-spread-text, .fd-spread-media { flex: 1 1 360px; min-width: 0; }
.fd-spread-text { min-height: 500px; padding: clamp(28px, 3.5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.fd-spread-text--center { justify-content: center; gap: 20px; min-height: 440px; }
.fd-spread-copy { display: flex; flex-direction: column; gap: 26px; }
.fd-spread-title { margin: 0; font-weight: 600; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -0.01em; max-width: 18ch; }
.fd-spread-title--lead { font-size: clamp(36px, 3.8vw, 58px); line-height: 1.06; max-width: 17ch; }
.fd-spread-title--article { font-size: clamp(36px, 3.8vw, 58px); max-width: 18ch; }
.fd-spread-title--profile { font-size: clamp(44px, 5vw, 76px); line-height: 1; }
.fd-spread-title a:hover { text-decoration: none; }
.fd-spread-dek { margin: 0; font-size: 20px; line-height: 1.5; max-width: 36ch; }
.fd-spread-media { position: relative; display: block; min-height: 500px; background: var(--ph); border-left: var(--line); overflow: hidden; }
.fd-spread-media .fd-img { position: absolute; inset: 0; }
.fd-spread--flip .fd-spread-media { border-left: 0; border-right: var(--line); min-height: 440px; }
.fd-spread--flip { flex-wrap: wrap-reverse; border-top: var(--line); }
.fd-spread--ruled { border-top: var(--line); }
.fd-spread--article .fd-spread-text, .fd-spread--article .fd-spread-media { min-height: 520px; }
.fd-spread--profile .fd-spread-text { min-height: 440px; }
.fd-spread-media--portrait { min-height: 440px; background: var(--cream); display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.fd-spread-media--portrait .fd-round { width: min(100%, 320px); }
.fd-spread--solo .fd-spread-text { flex-basis: 100%; min-height: 320px; }
.fd-byline { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 400; }
.fd-byline span:first-child { font-weight: 500; }
.fd-crumbs { display: flex; gap: 10px; }
.fd-crumbs a { text-decoration: underline; text-underline-offset: 4px; }

/* ═══ BLOCKS AND STORY CARDS ═══ */
.fd-block { padding-top: 88px; padding-bottom: 104px; }
.fd-block-head { display: flex; align-items: center; gap: 20px; margin-bottom: 56px; }
.fd-block-head--split { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px 48px; }
.fd-block-head--split .fd-block-head { margin-bottom: 0; }
.fd-block-title { margin: 0; font-weight: 600; font-size: 44px; line-height: 1.05; }
.fd-big-title { margin: 0; font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.fd-block-dek { margin: 14px 0 0; font-size: 20px; max-width: 36ch; }
.fd-icon { flex: none; }

.fd-grid { display: flex; flex-wrap: wrap; gap: 56px 48px; }
.fd-story { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fd-grid .fd-story { max-width: calc((100% - 96px) / 3 + 200px); }
.fd-story:hover { text-decoration: none; }
.fd-row { position: relative; }
.fd-row-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3.2vw, 48px); }
.fd-row-arrow { display: none; }
.fd-story-frame { display: block; aspect-ratio: 4 / 5; border: var(--line); overflow: hidden; background: var(--ph); }
.fd-story-frame .fd-img { transition: transform 0.4s ease; }
.fd-story:hover .fd-story-frame .fd-img { transform: scale(1.03); }
.fd-story .fd-kicker { font-size: 13px; }
.fd-story-title { font-weight: 600; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.2; }
.fd-story:hover .fd-story-title { text-decoration: underline; text-underline-offset: 4px; }

/* ═══ AT THE TABLE ═══ */
.fd-table { border-bottom: var(--line); }
.fd-table-inner { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 40px 96px; }
.fd-table-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fd-table-head { flex: 1 1 100%; margin-bottom: 0; }
.fd-table-intro p { margin: 0; font-size: 20px; max-width: 30ch; }
.fd-table-list { flex: 999 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.fd-table-list li { border-top: var(--line); }
.fd-table-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 26px 0; }
.fd-table-n { font-family: var(--sans); font-weight: 500; font-size: 16px; width: 32px; }
.fd-table-name { flex: 1 1 260px; font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.fd-table-date { font-family: var(--sans); font-size: 16px; letter-spacing: 0.04em; }

/* ═══ ROLODEX CARD (homepage) ═══ */
.fd-rolo-tabs { position: relative; z-index: 1; display: flex; align-items: flex-end; margin-bottom: -2px; }
.fd-rolo-arrow[data-fd-step="-1"] { border-right-width: 0; }
.fd-rolo-arrow[data-fd-step="1"] { border-left-width: 0; }
.fd-rolo-strip { flex: 1 1 auto; display: flex; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.fd-rolo-strip::-webkit-scrollbar { display: none; }
.fd-rolo-strip button {
    flex: 0 0 auto; min-height: 48px; padding: 0 22px; border: var(--line); border-left-width: 0; background: var(--cream); cursor: pointer;
    font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.fd-rolo-strip button:hover { background: #FFF6EC; }
.fd-rolo-strip button[aria-selected="true"] { background: var(--cyan); }
/* When every craft fits, the tabs stretch so the row ends exactly at the card's right edge. */
.fd-rolo-tabs:not(.is-scrollable) .fd-rolo-strip button { flex: 1 0 auto; }
.fd-rolo-tabs:not(.is-scrollable) .fd-rolo-strip button:first-child { border-left-width: 2px; }
.fd-rolo-tabs:not(.is-scrollable) .fd-rolo-arrow { display: none; }
.fd-rolo-arrow[disabled] { cursor: default; }
.fd-rolo-arrow[disabled] svg { opacity: 0.35; }
.fd-rolo-arrow { display: inline-flex; flex: none; width: 40px; height: 48px; border: var(--line); background: var(--ink); align-items: center; justify-content: center; cursor: pointer; position: relative; z-index: 2; }
.fd-rolo-panel, .fd-rolo-featured {
    border: var(--line); padding: clamp(24px, 4vw, 56px);
    display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center;
}
.fd-rolo-panel[hidden] { display: none; }
.fd-rolo-panel--list { flex-direction: column; align-items: stretch; gap: 24px; }
.fd-rolo-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.fd-rolo-people li { padding: 18px 0; border-top: 1px solid var(--rule); }
.fd-rolo-people li:nth-child(-n+3) { border-top: 0; padding-top: 0; }
.fd-rolo-person { display: flex; align-items: center; gap: 16px; }
.fd-rolo-person:hover { text-decoration: none; }
.fd-rolo-person-pic { flex: none; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border: var(--line); }
.fd-rolo-person-pic .fd-round { width: 62px; }
.fd-rolo-person-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fd-rolo-person-name { font-weight: 600; font-size: 20px; line-height: 1.2; }
.fd-rolo-person:hover .fd-rolo-person-name { text-decoration: underline; text-underline-offset: 4px; }
.fd-rolo-panel--list > .fd-textlink { align-self: flex-start; }
.fd-rolo-portrait { flex: 1 1 300px; max-width: 440px; min-width: 0; aspect-ratio: 1 / 1; border: var(--line); padding: 40px; display: flex; }
.fd-rolo-portrait .fd-round { margin: auto; }
.fd-rolo-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fd-rolo-copy p { margin: 0; font-size: 21px; line-height: 1.55; max-width: 40ch; }
.fd-rolo-name { font-weight: 600; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }

/* ═══ PAGE HEADS, LISTS ═══ */
.fd-page-head { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.fd-page-head--narrow { max-width: 820px; }
.fd-page-title { margin: 0; font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1.05; }
.fd-page-dek { margin: 0; font-size: 21px; max-width: 46ch; }
.fd-page-dek p { margin: 0; }
.fd-list { padding-bottom: 120px; border-top: var(--line); padding-top: 56px; }
.fd-empty { font-size: 21px; padding: 40px 0 120px; }
.fd-pagination { margin-top: 72px; }
.fd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: var(--line); }
.fd-pagination .page-numbers.current { background: var(--cyan); }

/* ═══ ARTICLE ═══ */
.fd-article { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 104px; }
.fd-article--page { padding-top: 24px; }
.fd-prose { font-size: 21px; line-height: 1.65; }
.fd-prose > * { margin: 0 0 28px; }
.fd-prose h2 { font-weight: 600; font-size: 36px; line-height: 1.15; margin-top: 56px; }
.fd-prose h3 { font-weight: 600; font-size: 27px; line-height: 1.2; margin-top: 40px; }
.fd-prose h4 { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 40px; }
.fd-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fd-prose ul, .fd-prose ol { padding-left: 1.2em; }
.fd-prose li { margin-bottom: 8px; }
.fd-prose figure, .fd-prose .wp-block-image { margin: 48px 0; }
.fd-prose figure img, .fd-prose .wp-block-image img { border: var(--line); width: 100%; }
.fd-prose figcaption, .fd-prose .wp-element-caption { margin-top: 12px; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.fd-prose .alignwide { margin-left: calc(-1 * min(14vw, 200px)); margin-right: calc(-1 * min(14vw, 200px)); }
.fd-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.fd-prose .wp-block-gallery { gap: 12px; }
.fd-prose .wp-block-gallery img { border: var(--line); }
.fd-prose blockquote { margin: 56px 0; padding: 0; text-align: center; }
.fd-prose blockquote p { font-style: italic; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.28; margin: 0 0 14px; }
.fd-prose blockquote cite { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.fd-prose iframe, .fd-prose video { max-width: 100%; }
.fd-mention-link { text-decoration-style: dotted !important; }

.fd-in-rolodex { margin-top: 56px; border-top: var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; font-size: 19px; }
.fd-in-rolodex a { text-decoration: underline; text-underline-offset: 3px; }
.fd-more { border-top: var(--line); padding: 96px 0 112px; }
.fd-more .fd-block-title { margin-bottom: 48px; }

/* ═══ ROLODEX PAGE ═══ */
.fd-rolo-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.fd-rolo-head > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.fd-search { flex: 1 1 360px; display: flex; min-width: 0; }
.fd-search input { flex: 1 1 auto; min-width: 0; height: 56px; border: var(--line); background: var(--cream); padding: 0 18px; font-family: var(--sans); font-size: 17px; color: var(--ink); border-radius: 0; }
.fd-search button, .fd-letter-form button { height: 56px; padding: 0 24px; border: var(--line); border-left-width: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.fd-rolo-featured { margin-bottom: 48px; }
.fd-crafts { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; border-top: var(--line); border-bottom: var(--line); }
.fd-crafts a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: var(--line); font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-crafts a:hover { text-decoration: none; background: var(--cyan); }
.fd-crafts a[aria-current="page"] { background: var(--cyan); }
.fd-crafts--center { justify-content: center; border: 0; }
.fd-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 20px 0 32px; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; }
.fd-jump span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px; }
.fd-jump a { min-width: 28px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 4px; }
.fd-rolo-list { display: flex; flex-direction: column; gap: 48px; padding-bottom: 104px; }
.fd-letter-group { display: flex; flex-wrap: wrap; gap: 20px 40px; border-top: var(--line); padding-top: 24px; scroll-margin-top: 24px; }
.fd-letter { flex: 0 0 80px; margin: 0; font-weight: 600; font-size: 56px; line-height: 1; }
.fd-entries { flex: 1 1 600px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.fd-entry { flex: 1 1 300px; min-width: 0; border: var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.fd-tag { align-self: flex-start; background: var(--cyan); border: var(--line); padding: 4px 12px 5px; font-size: 12px; letter-spacing: 0.08em; }
.fd-entry-name { margin: 0; font-weight: 600; font-size: 26px; line-height: 1.15; }
.fd-entry-at { font-size: 17px; line-height: 1.4; }
.fd-entry-roles { font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em; opacity: 0.75; }
.fd-entry-at a { text-decoration: underline; text-underline-offset: 3px; }

/* ═══ PROFILE ═══ */
.fd-profile { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px 96px; align-items: flex-start; }
.fd-card { flex: 1 1 300px; max-width: 380px; min-width: 0; }
.fd-card-tab { display: inline-block; position: relative; z-index: 1; margin-bottom: -2px; border: var(--line); border-bottom: 0; background: var(--cream); padding: 12px 22px 12px; font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-card-body { margin: 0; border: var(--line); padding: 4px 20px; }
.fd-card-body div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 11px 0 12px; border-top: 1px solid var(--rule); }
.fd-card-body div:first-child { border-top: 0; }
.fd-card-body dt { font-family: var(--sans); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.fd-card-body dd { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: break-word; }
.fd-card-edit { display: inline-flex; align-items: center; height: 38px; margin-top: 14px; padding: 0 14px; border: var(--line); font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-card-edit:hover { text-decoration: none; background: var(--cyan); }
.fd-card-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fd-profile-side { flex: 999 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 40px; padding-top: 50px; }
.fd-bio { font-size: 22px; line-height: 1.6; }
/* The offset hangs the bio on the card's first field. Below ~975px the bio wraps under the card and the offset would only add air. */
@media (max-width: 975px) { .fd-profile-side { padding-top: 0; } }
.fd-seen { display: flex; flex-direction: column; gap: 20px; }
.fd-seen .fd-kicker { font-size: 13px; }
.fd-seen-item { display: flex; gap: 20px; align-items: center; }
.fd-seen-item:hover { text-decoration: none; }
.fd-seen-thumb { flex: 0 0 96px; aspect-ratio: 4 / 5; border: var(--line); overflow: hidden; background: var(--ph); }
.fd-seen-item > span:last-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fd-seen-item .fd-kicker { font-size: 12px; }
.fd-seen-title { font-weight: 600; font-size: 22px; line-height: 1.2; }
.fd-seen-item:hover .fd-seen-title { text-decoration: underline; text-underline-offset: 4px; }

.fd-related { display: flex; flex-direction: column; gap: 14px; }
.fd-related .fd-kicker { font-size: 13px; }
.fd-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.fd-related li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: var(--line); padding: 14px 18px; min-width: 200px; }
.fd-related-name { font-weight: 600; font-size: 21px; line-height: 1.2; }
.fd-related-name:hover { text-underline-offset: 4px; }

/* ═══ ABOUT ═══ */
.fd-about .fd-spread-text { gap: 22px; }
.fd-about-statement p { margin: 0; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.55; max-width: 44ch; }
.fd-about-statement p + p { margin-top: 1em; }
.fd-about-subline p { margin: 0; font-style: italic; font-size: 16px; }
.fd-about-venn { background: var(--cream); display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px); }
.fd-about-venn svg { width: 100%; max-width: 460px; height: auto; }
.fd-about-more { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px 96px; align-items: flex-start; }
.fd-about-body { flex: 999 1 480px; max-width: 680px; }
.fd-about-contact { flex: 1 1 300px; max-width: 420px; }
.fd-about-note { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; opacity: 0.7; }

/* ═══ CARD PAGE (NFC business card, /card/) ═══ */
.fd-nfc { min-height: 100vh; display: flex; flex-direction: column; }
.fd-nfc .fd-nfc-wrap { flex: 1 0 auto; width: 100%; }
.fd-nfc .fd-newsletter { border-bottom: 0; }
.fd-nfc-wrap { max-width: 440px; margin: 0 auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 28px; }
.fd-nfc-logo { align-self: center; }
.fd-nfc-logo img { width: 160px; height: auto; }
.fd-nfc-person { text-align: center; margin: 4px 0 8px; }
.fd-nfc-name { margin: 0; font-weight: 600; font-size: 34px; line-height: 1.1; }
.fd-nfc-role { margin: 8px 0 0; font-style: italic; font-size: 18px; }
.fd-nfc-line { margin: -8px 0 8px; text-align: center; font-style: italic; font-size: 18px; }
.fd-nfc .fd-card { max-width: none; flex: none; }
.fd-nfc-save { display: block; text-align: center; background: var(--ink); color: var(--cream); border: var(--line); padding: 16px; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.fd-nfc-save:hover { text-decoration: none; background: var(--cyan); color: var(--ink); }
.fd-nfc-nice { margin-top: -18px; }
.fd-nfc-explore { align-self: center; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 4px; }

/* ═══ LETTER AND FOOTER ═══ */
.fd-newsletter { background: var(--cyan); border-top: var(--line); border-bottom: var(--line); }
.fd-letter-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.fd-letter-title { margin: 0; font-weight: 600; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.fd-letter-line { margin: 0; font-size: 20px; max-width: 42ch; }
.fd-letter-form { display: flex; flex-wrap: wrap; justify-content: center; width: min(620px, 100%); }
.fd-letter-form input { flex: 1 1 260px; min-width: 0; height: 58px; border: var(--line); background: var(--cream); padding: 0 20px; font-family: var(--sans); font-size: 17px; color: var(--ink); border-radius: 0; }
.fd-letter-form button { height: 58px; padding: 0 30px; }
.fd-letter-form button:hover, .fd-search button:hover { background: var(--cream); color: var(--ink); }

.fd-footer-cols { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: 40px 56px; align-items: start; }
.fd-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fd-footer-brand .fd-logo img { width: 124px; }
.fd-footer-brand p { margin: 0; font-size: 17px; font-style: italic; }
.fd-footer-social { display: grid; grid-template-columns: max-content; gap: 10px; margin-top: 4px; }
.fd-footer-social .fd-footer-pill { justify-content: center; }
.fd-footer-links a { white-space: nowrap; }
.fd-footer-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: var(--line); font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-footer-pill:hover { text-decoration: none; background: var(--cyan); }
.fd-footer-pill--mail { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }
.fd-footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fd-footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.fd-footer-col--menu .fd-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 40px; row-gap: 8px; }
.fd-footer-head { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.fd-footer-base { padding-bottom: 32px; }
.fd-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; border-top: 1px solid var(--rule); padding-top: 18px; opacity: 0.8; }

/* ═══ 404 ═══ */
.fd-404 { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

/* ═══ ABOUT AND CARD PAGES — carried over from Chin Chin ═══ */
.cc-page { max-width: 820px; margin: 0 auto; padding: 40px 20px 96px; }
.cc-plate { position: relative; border: var(--line); background: var(--cream); margin-top: 40px; padding: 38px 28px 26px; }
.cc-plate:first-of-type { margin-top: 20px; }
.cc-plate-tab { position: absolute; top: -14px; left: 26px; margin: 0; background: var(--cyan); border: var(--line); padding: 4px 14px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.cc-plate-tab--alt { background: var(--cyan); }
.cc-about-grid { display: grid; grid-template-columns: 1fr 390px; gap: 26px; align-items: center; }
.cc-venn { display: block; width: 100%; max-width: 390px; margin: 0 auto; }
.cc-about-copy p { font-size: 18px; line-height: 1.7; margin: 0 0 16px; }
.cc-about-copy p:first-child { font-weight: 600; font-size: 30px; line-height: 1.18; margin-bottom: 12px; }
.cc-about-copy p:nth-child(2) { font-style: italic; font-size: 20px; line-height: 1.4; margin-bottom: 0; }
.cc-about-copy a { text-decoration: underline; text-underline-offset: 3px; }
.cc-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cc-row:last-child { border-bottom: none; padding-bottom: 0; }
.cc-dot { width: 17px; height: 17px; border-radius: 50%; border: var(--line); flex: none; margin-top: 6px; }
.cc-row a { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; width: fit-content; }
.cc-row span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 5px; }
.cc-nfc-wrap { max-width: 440px; margin: 0 auto; padding: 48px 24px 44px; }
.cc-nfc-logo { display: block; width: 150px; margin: 0 auto 14px; }
.cc-nfc-logo img { width: 100%; }
.cc-nfc-line { text-align: center; font-size: 18px; line-height: 1.45; margin-bottom: 38px; }
.cc-nfc-wrap .cc-plate:first-of-type { margin-top: 0; }
.cc-nfc-wrap .cc-row a { font-size: 19px; }
.cc-nfc-save { display: block; text-align: center; margin: 28px 0 26px; background: var(--ink); color: var(--cream); border: var(--line); padding: 15px 16px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.cc-nfc-explore { display: block; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.cc-nfc-explore span { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ═══ SMALL LAPTOP ═══ keep the whole nav on one line */
@media (min-width: 901px) and (max-width: 1180px) {
    .fd-header-row { flex-wrap: nowrap; gap: 24px; }
    .fd-logo img { width: 124px; }
    .fd-nav { flex-wrap: nowrap; gap: 2px; font-size: 13px; letter-spacing: 0.06em; }
    .fd-nav a { padding: 6px 8px; }
}

/* ═══ NARROW WINDOW ═══ when the nav can't fit on one line, it folds into the menu button */
@media (max-width: 900px) {
    .fd-header-row { flex-wrap: nowrap; }
    .fd-nav { display: none; }
    .fd-menu-btn { display: inline-flex; }
}

/* ═══ PHONE ═══ */
@media (max-width: 760px) {
    body { font-size: 17px; }
    .fd-header-row { padding-top: 14px; padding-bottom: 14px; flex-wrap: nowrap; }
    .fd-logo img { width: 110px; }
    .fd-nav { display: none; }
    .fd-menu-btn { display: inline-flex; }

    .fd-spread-text, .fd-spread-media { flex-basis: 100%; }
    .fd-spread { flex-wrap: wrap-reverse; }
    .fd-spread--flip { flex-wrap: wrap; } /* image on top, like the lead */
    .fd-spread-text, .fd-spread-text--center { min-height: 0; padding: 28px 20px 32px; gap: 18px; justify-content: flex-start; }
    .fd-spread-copy { gap: 14px; }
    .fd-spread-media, .fd-spread--flip .fd-spread-media, .fd-spread--article .fd-spread-media { min-height: 260px; border-left: 0; border-right: 0; border-bottom: var(--line); }
    .fd-spread--article .fd-spread-text { min-height: 0; }
    .fd-spread-media--portrait { min-height: 0; padding: 32px; border-top: var(--line); border-bottom: 0; }
    .fd-spread--profile { flex-wrap: wrap; }
    .fd-spread-media--portrait .fd-round { width: 260px; }
    .fd-spread-title, .fd-spread-title--lead, .fd-spread-title--article { font-size: 32px; max-width: none; }
    .fd-spread-title--profile { font-size: 44px; }
    .fd-spread-dek { font-size: 17px; }
    .fd-kicker, .fd-textlink, .fd-button, .fd-crumbs, .fd-byline { font-size: 12px; }

    .fd-block { padding-top: 56px; padding-bottom: 64px; }
    .fd-block-head { margin-bottom: 28px; gap: 12px; }
    .fd-block-head .fd-icon { width: 40px; height: 40px; }
    .fd-block-title { font-size: 30px; }
    .fd-big-title { font-size: 36px; }
    .fd-block-dek { font-size: 17px; }
    .fd-block-head--split .fd-button { width: 100%; text-align: center; }
    .fd-grid { gap: 36px; }
    .fd-grid .fd-story { flex-basis: 100%; max-width: none; }
    .fd-story-frame { aspect-ratio: auto; height: 300px; }
    .fd-row { margin: 0 calc(-1 * var(--gutter)); }
    .fd-row-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; }
    .fd-row-track::-webkit-scrollbar { display: none; }
    .fd-row-track .fd-story { flex: 0 0 80%; scroll-snap-align: start; }
    .fd-row-track .fd-story-frame { height: auto; aspect-ratio: 4 / 5; }
    .fd-row-arrow { display: inline-flex; position: absolute; z-index: 2; top: calc((100vw - 2 * var(--gutter)) * 0.5 - 22px); width: 40px; height: 44px; border: var(--line); background: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
    .fd-row-arrow--prev { left: 0; }
    .fd-row-arrow--next { right: 0; }
    .fd-row-arrow[disabled] { opacity: 0; pointer-events: none; }
    .fd-story-title { font-size: 22px; }
    .home .fd-spread-title, .home .fd-spread-title--lead { font-size: 26px; line-height: 1.12; }
    .home .fd-spread-dek { font-size: 16px; }
    .home .fd-story-title { font-size: 19px; }
    .home .fd-table-name { font-size: 19px; }

    .fd-table-inner { padding-top: 48px; padding-bottom: 40px; gap: 24px; }
    .fd-table-head .fd-icon { width: 40px; height: 40px; }
    .fd-table-intro p { font-size: 17px; }
    .fd-table-list a { padding: 16px 0; gap: 4px 16px; }
    .fd-table-name { font-size: 24px; flex-basis: calc(100% - 48px); }
    .fd-table-date { padding-left: 48px; font-size: 13px; }

    /* Homepage card: arrow, tabs that scroll, arrow. The cut-off tab shows there's more. */
    .fd-rolo-tabs { padding-left: 0; }
    .fd-rolo-arrow { height: 44px; }
    .fd-rolo-strip { flex: 1 1 auto; }
    .fd-rolo-strip button { min-height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: 0.08em; }
    .fd-rolo-panel, .fd-rolo-featured { padding: 20px; gap: 14px; flex-direction: column; align-items: stretch; }
    .fd-rolo-portrait { flex: none; max-width: none; aspect-ratio: auto; height: 240px; padding: 20px; }
    .fd-rolo-portrait .fd-round { width: 196px; }
    .fd-rolo-name { font-size: 26px; }
    .fd-rolo-people { grid-template-columns: 1fr; }
    .fd-rolo-people li:nth-child(-n+3) { border-top: 1px solid var(--rule); padding-top: 16px; }
    .fd-rolo-people li:first-child { border-top: 0; padding-top: 0; }
    .fd-rolo-people li { padding: 16px 0; }
    .fd-rolo-person-pic { width: 72px; height: 72px; }
    .fd-rolo-person-pic .fd-round { width: 52px; }
    .fd-rolo-person-name { font-size: 18px; }
    .fd-rolo-more { display: none !important; }
    .fd-rolo-copy { gap: 12px; flex: none; }
    .fd-rolo-copy p { font-size: 17px; }

    .fd-page-head { padding-top: 36px; padding-bottom: 24px; }
    .fd-page-title { font-size: 44px; }
    .fd-page-dek { font-size: 17px; }
    .fd-list { padding-top: 32px; padding-bottom: 64px; }
    .fd-search input { height: 48px; font-size: 15px; }
    .fd-search button { height: 48px; padding: 0 16px; }
    .fd-crafts { gap: 8px; padding: 14px 0; }
    .fd-crafts a { min-height: 40px; padding: 0 12px; font-size: 12px; }
    .fd-letter-group { flex-direction: column; gap: 12px; padding-top: 14px; }
    .fd-letter { flex: none; font-size: 36px; }
    .fd-entries { gap: 12px; flex-basis: auto; }
    .fd-entry { flex-basis: 100%; padding: 14px 16px; gap: 6px; }
    .fd-entry-name { font-size: 22px; }
    .fd-entry-at { font-size: 15px; }

    .fd-article { padding-top: 40px; padding-bottom: 56px; }
    .fd-prose { font-size: 18px; }
    .fd-prose h2 { font-size: 28px; }
    .fd-prose .alignwide { margin-left: 0; margin-right: 0; }
    .fd-more { padding: 56px 0 64px; }

    .fd-profile { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
    .fd-card { max-width: none; flex-basis: 100%; }
    .fd-card-body { padding: 2px 16px; }
    .fd-card-body div { padding: 10px 0 11px; gap: 12px; grid-template-columns: 80px minmax(0, 1fr); }
    .fd-profile-side { padding-top: 0; gap: 36px; flex-basis: 100%; }
    .fd-bio { font-size: 18px; }
    .fd-seen-thumb { flex-basis: 80px; }
    .fd-seen-title { font-size: 19px; }

    .fd-letter-inner { padding-top: 48px; padding-bottom: 48px; align-items: stretch; text-align: left; }
    .fd-letter-title { font-size: 28px; }
    .fd-letter-line { font-size: 17px; }
    .fd-letter-form { flex-direction: column; width: 100%; }
    .fd-letter-form input { flex: none; height: 52px; }
    .fd-letter-form button { height: 52px; border-left-width: 2px; border-top-width: 0; }
    .fd-footer-cols { padding-top: 40px; padding-bottom: 32px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 24px; }
    .fd-footer-brand { grid-column: 1 / -1; }
    .fd-footer-col--menu .fd-footer-links { grid-template-columns: 1fr; }

    .cc-about-grid { grid-template-columns: 1fr; gap: 22px; }
    .fd-about { flex-wrap: wrap; }
    .fd-about-venn { border-top: var(--line); border-bottom: 0; min-height: 0; }
    .fd-about-more { padding-top: 48px; padding-bottom: 64px; }
    .cc-plate { padding: 32px 20px 22px; }
}

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

/* Rolodex people grid: two across on small laptops and tablets. */
@media (min-width: 761px) and (max-width: 1100px) {
    .fd-rolo-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fd-rolo-people li:nth-child(3) { border-top: 1px solid var(--rule); padding-top: 18px; }
}

/* ── Calendar ── */
.fd-cal-toggle { display: inline-flex; border: var(--line); align-self: flex-end; }
.fd-cal-toggle a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-cal-toggle a + a { border-left: var(--line); }
.fd-cal-toggle a:hover { text-decoration: none; background: var(--cyan); }
.fd-cal-toggle a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.fd-cal-list { padding: 32px 0 24px; display: flex; flex-direction: column; gap: 40px; }
.fd-cal-month { display: block; }
.fd-cal-list > .fd-cal-month:first-child { border-top: 0; padding-top: 0; }
.fd-cal-month-name { margin: 0 0 8px; font-weight: 600; font-size: 28px; line-height: 1.1; }
.fd-cal-items { display: flex; flex-direction: column; }
.fd-cal-item { display: grid; grid-template-columns: 104px 1fr; gap: 8px 28px; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); }
.fd-cal-items .fd-cal-item:first-child { border-top: 0; }
.fd-cal-date { display: flex; flex-direction: column; width: 104px; border: var(--line); background: var(--cyan); }
.fd-cal-band { background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; white-space: nowrap; padding: 4px 4px 5px; }
.fd-cal-days { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1; text-align: center; padding: 12px 0 13px; }
.fd-cal-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fd-cal-text .fd-entry-name { font-size: 22px; }
.fd-cal-more { padding-bottom: 96px; }
.fd-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0 20px; }
.fd-cal-nav .fd-cal-month-name { margin: 0; }
.fd-cal-arrow { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); border: var(--line); }
.fd-cal-arrow:hover { background: var(--ink); opacity: 0.85; }
.fd-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: var(--line); border-left: var(--line); margin-bottom: 96px; }
.fd-cal-dow { padding: 10px 12px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-right: var(--line); border-bottom: var(--line); background: var(--cyan); }
.fd-cal-cell { min-height: 116px; padding: 8px 0 10px; display: flex; flex-direction: column; gap: 4px; border-right: var(--line); border-bottom: var(--line); min-width: 0; }
.fd-cal-cell--blank { background: var(--ph); }
.fd-cal-num { height: 20px; line-height: 20px; padding: 0 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.fd-cal-cell.is-today .fd-cal-num { align-self: flex-start; margin-left: 4px; padding: 0 6px; background: var(--ink); color: var(--cream); }
.fd-cal-chip { display: block; margin: 0; padding: 3px 8px; background: var(--cyan); font-family: var(--sans); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: transparent; min-height: 22px; }
.fd-cal-chip.is-start { color: var(--ink); }
.fd-cal-chip--gap { visibility: hidden; }
.fd-cal-chip { overflow: visible; position: relative; }
.fd-cal-chip.is-start { z-index: 1; }
.fd-cal-chip.is-end { margin-right: 8px; }
.fd-cal-chip.is-start:not(.is-end) { white-space: nowrap; }
.fd-cal-chip:hover { text-decoration: none; background: var(--ink); color: var(--cream); }
.fd-cal-list--month { display: none; }
@media (max-width: 760px) {
    .fd-cal-toggle { align-self: stretch; width: 100%; }
    .fd-cal-toggle a { flex: 1; justify-content: center; }
    .fd-cal-item { grid-template-columns: 88px 1fr; gap: 8px 20px; align-items: start; }
    .fd-cal-date { width: 88px; }
    .fd-cal-days { font-size: 20px; }
    .fd-cal-item { align-items: center; }
    .fd-cal-text .fd-entry-name { font-size: 19px; }
    .fd-cal-month-name { font-size: 24px; }
    /* On a phone the month is a list, not a grid. */
    .fd-cal-grid { display: none; }
    .fd-cal-list--month { display: flex; padding-top: 8px; padding-bottom: 96px; }
}

.fd-cal-home .fd-cal-items { border-top: var(--line); border-bottom: var(--line); }
.fd-cal-home .fd-cal-item:first-child { border-top: 0; }
.fd-block + .fd-cal-home { padding-top: 0; }
