/* ============================================================
   weeradach.com — Inner pages
   Each section gets its own editorial format; only the
   furniture (spine, masthead, colophon) is shared.
   ============================================================ */

/* ---------- shared page opener ---------- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  margin-top: clamp(1.6rem, 3vw, 2.8rem);
  padding-bottom: clamp(.9rem, 1.6vw, 1.4rem);
  border-bottom: 2px solid var(--ink);
}
.page-head__kicker { margin: 0 0 .5rem; }
.page-head h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1rem + 4vw, 4.6rem);
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.028em;
  line-height: .95;
}
.page-head h1 .th { font-family: var(--f-display-th); font-style: normal; font-weight: 700; }
.page-head__note {
  margin: 0;
  max-width: 34ch;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: right;
}
@media (max-width: 760px) {
  .page-head { grid-template-columns: minmax(0,1fr); margin-inline: clamp(1rem,4.5vw,1.4rem); }
  .page-head__note { text-align: left; max-width: none; }
}

/* =========================================================
   STORY READER · long-form
   ========================================================= */
.story-hero { position: relative; margin-top: clamp(1.2rem, 2.4vw, 2rem); }
.story-hero .photo { aspect-ratio: 21 / 9; }
.story-hero .photo::after {
  background: linear-gradient(178deg, rgba(18,14,10,.18) 30%, rgba(14,11,8,.78));
}
.story-hero__text {
  position: absolute;
  left: clamp(1.1rem, 3vw, 3rem);
  right: clamp(1.1rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 3vw, 2.6rem);
  z-index: 3;
  color: #fff;
}
.story-hero__text .kicker { color: rgba(255,255,255,.72); }
.story-hero h1 {
  margin: .5rem 0 0;
  font-family: var(--f-display-th);
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  max-width: 18ch;
  text-shadow: 0 3px 24px rgba(0,0,0,.35);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: clamp(1.2rem, 2.4vw, 2rem) 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-sans);
  font-size: var(--t-micro);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the reading column, with a drop cap and two-column passages */
.story-body {
  max-width: 68ch;
  margin: clamp(1.5rem, 3vw, 2.6rem) auto 0;
  font-size: clamp(1rem, .95rem + .22vw, 1.14rem);
  line-height: 1.86;
}
.story-body > p { margin: 0 0 1.3em; }
.story-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 3.6em;
  line-height: .78;
  padding: .06em .12em 0 0;
  color: var(--orange);
}
.story-body h2 {
  margin: 2.2em 0 .7em;
  font-family: var(--f-display-th);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + .9vw, 1.85rem);
  line-height: 1.3;
}
.story-body h2::before {
  content: "";
  display: block;
  width: 46px; height: 2.5px;
  background: var(--orange);
  margin-bottom: .7rem;
}

.pullquote {
  margin: 2.2em 0;
  padding: 0 0 0 clamp(1rem, 2.4vw, 2rem);
  border-left: 3px solid var(--orange);
  font-family: var(--f-display-th);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem);
  line-height: 1.45;
  font-weight: 600;
}
.pullquote cite {
  display: block;
  margin-top: .7rem;
  font-family: var(--f-sans);
  font-style: normal;
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* a passage set in two columns, like the printed page */
.story-cols { columns: 2; column-gap: clamp(1.4rem, 3vw, 2.8rem); margin: 0 0 1.4em; }
.story-cols p { margin: 0 0 1.2em; }
@media (max-width: 700px) { .story-cols { columns: 1; } }

/* full-bleed plate */
.plate {
  margin: clamp(2rem, 4vw, 3.4rem) calc(var(--gut) * -1);
  position: relative;
}
.plate .photo { aspect-ratio: 16 / 7; }
.plate figcaption {
  max-width: 68ch;
  margin: .7rem auto 0;
  padding: 0 var(--gut);
  font-size: var(--t-small);
  color: var(--muted);
  font-style: italic;
}

/* photo essay: an uneven, hand-placed grid */
.essay {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.6rem, 1.2vw, 1.1rem);
  margin: clamp(1.8rem, 3.5vw, 3rem) 0;
}
.essay figure { margin: 0; }
.essay figure .photo { height: 100%; }
.essay figcaption { margin-top: .45rem; font-size: var(--t-small); color: var(--muted); }
.essay .e-1 { grid-column: span 4; }
.essay .e-1 .photo { aspect-ratio: 4 / 3; }
.essay .e-2 { grid-column: span 2; align-self: end; }
.essay .e-2 .photo { aspect-ratio: 3 / 4; }
.essay .e-3 { grid-column: span 2; }
.essay .e-3 .photo { aspect-ratio: 1; }
.essay .e-4 { grid-column: span 4; }
.essay .e-4 .photo { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .essay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essay .e-1, .essay .e-4 { grid-column: span 2; }
  .essay .e-2, .essay .e-3 { grid-column: span 1; }
}

/* related */
.related {
  margin-top: clamp(2.4rem, 4vw, 4rem);
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}
.related h2 { margin: 0 0 1.1rem; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.8rem, 1.6vw, 1.5rem); }
@media (max-width: 760px) { .related__grid { grid-template-columns: minmax(0,1fr); } }

/* =========================================================
   ISSUE ARCHIVE
   ========================================================= */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 23vw, 300px), 1fr));
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
}
.issue-card { display: block; }
.issue-card .photo { aspect-ratio: 3 / 4; box-shadow: 0 2px 4px rgba(24,24,24,.12), 0 20px 38px -22px rgba(24,24,24,.7); }
.issue-card .photo::after { background: linear-gradient(178deg, rgba(18,14,10,.05) 42%, rgba(14,11,8,.72)); }
.issue-card__no {
  position: absolute; top: .8rem; left: .9rem; z-index: 3;
  font-family: var(--f-sans); font-size: var(--t-micro);
  letter-spacing: .2em; color: rgba(255,255,255,.85);
}
.issue-card__title {
  position: absolute; left: .9rem; right: .9rem; bottom: .9rem; z-index: 3;
  margin: 0; color: #fff;
  font-family: var(--f-display-th); font-weight: 700;
  font-size: clamp(1.05rem, .9rem + .5vw, 1.4rem); line-height: 1.22;
}
.issue-card__meta { margin: .6rem 0 0; font-size: var(--t-small); color: var(--muted); }
.issue-card.is-current .photo { outline: 3px solid var(--orange); outline-offset: 4px; }

/* =========================================================
   WORK · project editorial rows
   ========================================================= */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.6vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3.2vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}
.project:nth-child(even) .project__media { order: 2; }
.project__media .photo { aspect-ratio: 16 / 10; }
/* ภาพผลงานเป็น PNG โปร่งใส วางลอยบนพื้นกระดาษโดยตรง ไม่มีกรอบ ไม่มีพื้นรอง */
.project__media .shot {
  display: block; width: 100%; height: auto;
  transition: transform .9s var(--ease);
}
.project:hover .project__media .shot { transform: translateY(-4px) scale(1.012); }
@media (prefers-reduced-motion: reduce) {
  .project__media .shot, .project:hover .project__media .shot { transition: none; transform: none; }
}
.project__no {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.4rem, 1rem + 3.6vw, 4.6rem);
  line-height: .8; color: var(--paper-deep);
  -webkit-text-stroke: 1.2px var(--muted);
}
.project h2 {
  margin: .5rem 0 .4rem;
  font-family: var(--f-display-th); font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.3vw, 2.3rem); line-height: 1.2;
}
.project__role {
  margin: 0 0 .9rem;
  font-family: var(--f-sans); font-size: var(--t-micro);
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
}
.project p.lead { margin: 0 0 1rem; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--f-sans); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .6rem; border: 1px solid var(--border); color: var(--ink-soft);
}
@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0,1fr); }
  .project:nth-child(even) .project__media { order: 0; }
}
@media (max-width: 760px) { .project { margin-inline: clamp(1rem,4.5vw,1.4rem); } }

/* =========================================================
   JOURNEYS · travel log
   ========================================================= */
.journey {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2.4rem);
  padding: clamp(1.3rem, 2.6vw, 2.4rem) 0;
  border-bottom: 1px solid var(--border);
}
.journey__when {
  font-family: var(--f-sans); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-top: .35rem;
}
.journey h2 { margin: 0 0 .5rem; font-family: var(--f-display-th); font-weight: 700; font-size: clamp(1.3rem,1rem+1vw,1.95rem); }
.journey__shots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .6rem; margin-top: 1rem; }
.journey__shots .photo { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .journey { grid-template-columns: minmax(0,1fr); gap: .6rem; margin-inline: clamp(1rem,4.5vw,1.4rem); }
}

/* =========================================================
   LIFE · visual diary masonry
   ========================================================= */
.diary { columns: 3; column-gap: clamp(.8rem, 1.8vw, 1.6rem); margin-top: clamp(1.5rem,3vw,2.5rem); }
.diary__note {
  break-inside: avoid;
  margin: 0 0 clamp(.8rem, 1.8vw, 1.6rem);
  padding: clamp(.9rem, 1.6vw, 1.3rem);
  background: var(--paper-warm);
  box-shadow: 0 1px 2px rgba(24,24,24,.07), 0 12px 26px -18px rgba(24,24,24,.5);
}
.diary__note:nth-child(3n+1) { transform: rotate(-.5deg); }
.diary__note:nth-child(3n)   { transform: rotate(.45deg); }
.diary__note .photo { aspect-ratio: 4 / 3; margin-bottom: .8rem; }
.diary__when {
  font-family: var(--f-sans); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.diary__note h2 { margin: .35rem 0 .4rem; font-family: var(--f-display-th); font-weight: 700; font-size: 1.12rem; line-height: 1.32; }
.diary__note p { margin: 0; font-size: .85rem; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 1000px) { .diary { columns: 2; } }
@media (max-width: 640px)  { .diary { columns: 1; margin-inline: clamp(1rem,4.5vw,1.4rem); } }

/* =========================================================
   IDEAS · the lab + perspectives
   ========================================================= */
.sec-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin: clamp(2rem, 4vw, 3.4rem) 0 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ink);
}
.sec-head h2 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: clamp(1.5rem,1rem+1.6vw,2.4rem); }
.sec-head p  { margin: 0; font-size: var(--t-small); color: var(--muted); }

.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px,24vw,300px),1fr)); gap: clamp(.9rem,1.8vw,1.5rem); }
.lab-card {
  display: block; padding: clamp(1rem,1.8vw,1.5rem);
  background: var(--paper-warm); border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.lab-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -22px rgba(24,24,24,.65); }
.lab-card__state {
  display: inline-block; margin-bottom: .7rem;
  font-family: var(--f-sans); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  padding: .2rem .5rem; background: var(--orange); color: #fff;
}
.lab-card__state[data-state="paused"] { background: var(--muted); }
.lab-card__state[data-state="shipped"] { background: var(--blue); }
.lab-card h3 { margin: 0 0 .4rem; font-family: var(--f-display-th); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.lab-card p { margin: 0; font-size: .84rem; line-height: 1.7; color: var(--ink-soft); }

.think-list { list-style: none; margin: 0; padding: 0; }
.think-list li { border-bottom: 1px solid var(--border); }
.think-list a {
  display: grid; grid-template-columns: 5.5rem minmax(0,1fr) auto;
  gap: 1rem; align-items: baseline;
  padding: clamp(.85rem,1.6vw,1.3rem) 0;
  transition: color .25s;
}
.think-list a:hover { color: var(--orange); }
.think-list .d { font-family: var(--f-sans); font-size: var(--t-micro); letter-spacing: .16em; color: var(--muted); }
.think-list .t { font-family: var(--f-display-th); font-weight: 600; font-size: clamp(1rem,.9rem+.6vw,1.45rem); line-height: 1.3; }
.think-list .n { font-family: var(--f-display); font-weight: 700; color: var(--muted); }
@media (max-width: 760px) {
  .lab-grid, .sec-head, .think-list { margin-inline: clamp(1rem,4.5vw,1.4rem); }
  .think-list a { grid-template-columns: minmax(0,1fr) auto; }
  .think-list .d { grid-column: 1 / -1; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.4rem, 3.4vw, 4rem);
  align-items: start;
  margin-top: clamp(1.8rem, 3.4vw, 3rem);
}
.about__portrait { position: relative; }
.about__portrait .photo { aspect-ratio: 4 / 5; }
.about__portrait figcaption {
  margin-top: .6rem; font-size: var(--t-small); color: var(--muted); font-style: italic;
}
.about__body { font-size: clamp(1rem,.95rem+.2vw,1.12rem); line-height: 1.85; }
.about__body p { margin: 0 0 1.25em; }
.about__body p:first-child { font-size: 1.22em; line-height: 1.6; }
.facts { list-style: none; margin: 1.8rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .7rem; }
.facts li { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: 1rem; font-size: .9rem; }
.facts b { font-family: var(--f-sans); font-size: var(--t-micro); letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: .25em; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 760px) { .about { margin-inline: clamp(1rem,4.5vw,1.4rem); } .facts li { grid-template-columns: minmax(0,1fr); gap: .1rem; } }

/* =========================================================
   ISSUE DETAIL
   ========================================================= */
.issue-open {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}
.issue-open .photo { aspect-ratio: 3 / 4; box-shadow: 0 3px 6px rgba(24,24,24,.14), 0 26px 46px -26px rgba(24,24,24,.75); }
.issue-open h1 { margin: .6rem 0 .8rem; font-family: var(--f-display-th); font-weight: 700; font-size: clamp(1.9rem,1rem+2.8vw,3.4rem); line-height: 1.1; }
@media (max-width: 860px) { .issue-open { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 760px) { .issue-open, .issue-grid { margin-inline: clamp(1rem,4.5vw,1.4rem); } }

/* a story card reused by related / issue contents */
.card { display: block; }
.card .photo { aspect-ratio: 4 / 3; margin-bottom: .6rem; }
.card__p { font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--orange); }
.card h3 { margin: .15rem 0 .3rem; font-family: var(--f-display-th); font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.card p { margin: 0; font-size: .82rem; line-height: 1.65; color: var(--ink-soft); }
.card:hover h3 { color: var(--orange); }
