/* Tory Pham's editorial homepage: book covers, photographs and typography. */
:root[data-home-edition="editorial"] {
  --paper: #faf9f6;
  --ink: #25231f;
  --muted: #716c63;
  --wine: #65533d;
  --line: #dedbd4;
  --wrap: 1600px;
  --gutter: clamp(20px, 3.4vw, 64px);
}
.edition-note { display: flex; justify-content: space-between; gap: 1rem; padding: 7px 20px; border-bottom: 1px solid var(--line); font-size: .61rem; letter-spacing: .11em; text-transform: uppercase; }
.edition-note a { text-decoration: underline; text-underline-offset: 3px; }
.topbar { width: calc(100% - 40px); min-height: 83px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.wordmark { grid-column: 2; grid-row: 1; font-weight: 600; font-size: clamp(1.65rem, 2.3vw, 2.6rem); letter-spacing: -.075em; }
.site-nav { grid-column: 1; grid-row: 1; gap: clamp(8px, 1.4vw, 24px); }
.booking-link { grid-column: 3; grid-row: 1; color: var(--ink); }
.site-nav > a, .services-toggle, .booking-link { font-size: .68rem; }
.site-header { border-bottom: 1px solid var(--line); }
.services-menu { border-radius: 0; }
.home-opening { width: 100%; max-width: none; padding: 0; }
.home-service-cards { gap: 2px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-service-card { border-radius: 0; }
.edition-cover-stage { display: grid; place-items: center; padding: clamp(28px, 3.7vw, 68px) clamp(23px, 3.2vw, 60px) clamp(34px, 4vw, 72px); background: #e9e7e2; overflow: hidden; perspective: 1400px; }
.home-service-cards > li:nth-child(even) .edition-cover-stage { background: #e4e2dd; }
.edition-book { position: relative; display: block; width: 100%; background: #f5f1e7; transform: rotate(-1.2deg) rotateY(-5deg); transform-origin: center; box-shadow: 1px 1px 0 #d4cfc3, 3px 3px 0 #f0ece3, 5px 5px 0 #c9c5bd, 9px 12px 12px #352e2726, 19px 25px 24px #352e2729; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.home-service-cards > li:nth-child(even) .edition-book { transform: rotate(1.1deg) rotateY(-5deg); }
.edition-book::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 9px; background: linear-gradient(90deg, #28251d30, #ffffff50 35%, #28251d12 62%, transparent); pointer-events: none; }
.home-service-card .home-service-image { aspect-ratio: 4 / 5; border-radius: 0; background: #f3f0e9; }
.home-service-card .home-service-image img { border-radius: 0; object-fit: contain; }
.home-service-image::after { display: none; }
.edition-colophon { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 9px 12px 10px 14px; color: #484034; font-size: clamp(.42rem, .56vw, .62rem); letter-spacing: .12em; line-height: 1.1; }
.edition-imprint { font-weight: 600; }
.edition-volume { font-size: .8em; white-space: nowrap; }
.home-service-copy { flex: 0; padding: 15px 14px 19px; border-bottom: 1px solid var(--line); }
.home-service-heading { justify-content: center; align-items: center; }
.home-service-heading h2 { font-size: clamp(.85rem, 1.05vw, 1.2rem); text-align: center; text-transform: uppercase; letter-spacing: .035em; line-height: 1.3; }
.home-service-number { display: none; }
.home-service-description { margin: 6px 0 0; text-align: center; font-size: .69rem; line-height: 1.4; }
.home-service-action { display: none; }
.contact-band { border-radius: 0; }
.contact-band-inner { border-radius: 0; }
.booking-cta { border-radius: 0; }
.site-footer { border-top: 1px solid var(--line); }
.home-service-card:focus-visible { outline-offset: -3px; }
.home-service-card:focus-visible .edition-book { transform: rotate(0) translateY(-6px); }
.home-service-card:focus-visible .home-service-image { box-shadow: none; }
.home-service-card:focus-visible .home-service-image img { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .home-service-card:hover { transform: none; }
  .home-service-card:hover .home-service-image { box-shadow: none; }
  .home-service-card:hover .home-service-image img { filter: none; }
  .home-service-card:hover .edition-book { transform: rotate(0) rotateY(0) translateY(-7px); box-shadow: 1px 1px 0 #d4cfc3, 3px 3px 0 #f0ece3, 5px 5px 0 #c9c5bd, 12px 20px 18px #352e2726, 23px 34px 30px #352e2729; }
}
@media (max-width: 1000px) {
  .home-service-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .edition-cover-stage { padding: 28px 20px 34px; }
  .home-service-description { display: none; }
  .home-service-heading h2 { font-size: .78rem; }
  .home-service-copy { padding-inline: 6px; }
}
@media (max-width: 700px) {
}
@media (max-width: 620px) {
  .edition-note { padding-inline: 16px; font-size: .54rem; }
  .edition-note > span { letter-spacing: .04em; }
  .topbar { width: calc(100% - 32px); min-height: 96px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 50px 40px; gap: 0; }
  .wordmark { grid-column: 1; justify-self: start; font-size: 1.8rem; }
  .booking-link { grid-column: 2; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 16px; }
  .site-nav > a, .services-toggle, .booking-link { font-size: .68rem; min-height: 44px; }
  .home-service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .edition-cover-stage { padding: 24px 24px 30px; }
  .edition-colophon { padding: 7px 8px 8px 11px; font-size: .42rem; }
  .edition-book { box-shadow: 1px 1px 0 #d4cfc3, 3px 3px 0 #f0ece3, 4px 4px 0 #c9c5bd, 7px 10px 10px #352e2726, 12px 17px 17px #352e2729; }
  .home-service-copy { padding-block: 11px 12px; min-height: 44px; justify-content: center; }
  .home-service-heading h2 { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-book { transition: none; }
  .home-service-card:hover .edition-book, .home-service-card:focus-visible .edition-book { transform: none; }
}

/* One continuous editorial surface: photographs and type share the same grid. */
.edition-project-flow { width: 100%; margin: 0; padding: 0; }
.edition-flow { display: grid; gap: 2px; background: var(--paper); }
.flow-row { display: grid; grid-template-columns: var(--flow-tracks); gap: 2px; align-items: stretch; }
.flow-row > * { min-width: 0; overflow: hidden; }
.flow-story { --flow-ground: #ece7dd; --flow-ink: #25231f; --flow-fade: .38; position: relative; width: 100%; align-self: start; background: var(--flow-ground); }
.flow-story[data-tone="dark"] { --flow-ground: #25221e; --flow-ink: #f4efe5; --flow-fade: .48; }
.flow-story[data-tone="cool"] { --flow-ground: #d9e1e4; --flow-ink: #202b31; --flow-fade: .4; }
.flow-project-link { position: relative; display: block; isolation: isolate; overflow: hidden; }
.flow-project-link:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.flow-project-link .flow-image { position: relative; display: block; width: 100%; height: auto; aspect-ratio: var(--flow-ratio); container-type: inline-size; background: var(--flow-ground); }
.flow-image picture { display: block; width: 100%; }
.flow-project-link .flow-image img { display: block; width: 100%; height: auto; aspect-ratio: auto var(--flow-ratio); opacity: 1; filter: none; transition: opacity .55s var(--ease); }
.flow-identity { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 32px); padding: clamp(20px, 6cqw, 72px); text-align: center; color: var(--flow-ink); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.flow-brand { display: block; font: 600 clamp(2rem, 13cqw, 6.8rem)/.98 var(--sans); letter-spacing: -.065em; overflow-wrap: anywhere; text-wrap: balance; }
.flow-story[data-serif] .flow-brand { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.flow-subtitle { max-width: 25em; font-size: clamp(.7rem, 1.15vw, 1.15rem); line-height: 1.45; letter-spacing: .09em; text-transform: uppercase; text-wrap: balance; }
.flow-story[data-columns="4"] .flow-brand { font-size: clamp(2rem, 12cqw, 5.5rem); }
.flow-arrow { font-size: 1.3rem; line-height: 1; flex: none; }
.edition-flow[data-reveal-ready] .flow-story:not([data-revealed]) .flow-image img { opacity: var(--flow-fade); filter: none; }
.edition-flow[data-reveal-ready] .flow-story:not([data-revealed]) .flow-identity { opacity: 1; }
.edition-flow[data-reveal-ready] .flow-story:focus-within .flow-image img { opacity: 1; filter: none; }
.edition-flow[data-reveal-ready] .flow-story:focus-within .flow-identity { opacity: 0; transform: translateY(8px); }
.flow-type { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4.4vw, 76px); background: #faf9f6; }
.flow-statement { font: 600 clamp(3rem, 5.8vw, 6.8rem)/.92 var(--sans); letter-spacing: -.07em; }
.flow-type-note { max-width: 22em; font-size: clamp(.85rem, 1.3vw, 1.25rem); line-height: 1.45; }
.flow-type-link { display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 44px; width: 100%; padding-block: 12px; border-top: 1px solid currentColor; font-size: .75rem; }
.flow-type-practice { background: #27241f; color: #f4efe5; }
.flow-type.flow-type-practice { gap: clamp(18px, 2.7vw, 40px); }
.flow-type-practice .flow-statement { color: #d6c4a6; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: clamp(2.8rem, 6.1vw, 7.3rem); letter-spacing: -.06em; }
.flow-type-stories { background: #cbb997; color: #28241e; }
.flow-type-stories .flow-statement { font-size: clamp(2.5rem, 5.5vw, 6.3rem); }
.flow-type-archive { background: #e8e2d7; container-type: inline-size; }
.flow-type-archive .flow-statement { font-size: clamp(1.65rem, 14cqw, 4.5rem); }
.edition-project-flow + .contact-band { margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .edition-flow[data-reveal-ready] .flow-story:hover .flow-image img { opacity: 1; filter: none; }
  .edition-flow[data-reveal-ready] .flow-story:hover .flow-identity { opacity: 0; transform: translateY(8px); }
  .flow-type-link:hover .flow-arrow { transform: translate(3px, -3px); }
}
@media (max-width: 1000px) {
  .flow-type { padding: clamp(22px, 3.5vw, 42px); gap: 25px; }
  .flow-statement { font-size: clamp(2.8rem, 7vw, 5.5rem); }
  .flow-type-practice .flow-statement { font-size: clamp(2.6rem, 6vw, 4.8rem); }
  .flow-type-stories .flow-statement { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
  .flow-type-link { gap: 1rem; }
  .flow-identity { padding: 26px; }
}
@media (max-width: 760px) {
  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .flow-type { min-height: 320px; padding: 35px 28px; }
  .flow-statement, .flow-type-practice .flow-statement, .flow-type-stories .flow-statement { font-size: clamp(3rem, 15vw, 5.4rem); }
  .flow-type-archive .flow-statement { font-size: clamp(2.3rem, 10.6vw, 4.5rem); }
  .flow-brand, .flow-story[data-columns="4"] .flow-brand { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .flow-subtitle { font-size: .75rem; }
  .flow-type-note { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-project-link .flow-image img, .flow-identity, .flow-arrow { transition: none; }
}
