/*
 * prawees.com theme layer for the older, content-heavy pages (about, and later the project pages).
 * Loads after the page's own inline styles and after base.css. It neutralises per-section colours,
 * cards, shadows, rotations and monospace faces, and lays the page on the same grid as the home page.
 */

:root {
  --bg: #fff;
  --ink: #111;
  --ink-mid: #111;
  --ink-muted: #595959;
  --ink-faint: #595959;
  --rule: #111;
  --rule-soft: #e5e5e5;
  --link: #111;
  --link-hov: #111;
  --hi: #e5e5e5;
}

html { scroll-behavior: auto; }
body { background: transparent; font-family: var(--sans); font-size: var(--fs-b); line-height: 1.6; overflow-x: clip; }
body::after { display: none; }

/* one face, no rounding, no shadows, no case changes */
:root body *, :root body *::before, :root body *::after {
  font-family: var(--sans) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--mid); }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

[data-reveal] { transform: none; transition: opacity .5s steps(5, end); }

/* ---------- page frame ---------- */
.wrap { max-width: var(--max); width: 100%; margin: 0 auto; padding: 40px var(--padr) 72px var(--pad); }
@media (min-width: 768px) {
  .wrap { padding-top: 64px; }
  .wrap > .section, .wrap > .comment, .wrap > .social-links-minimal, .wrap > .foot { margin-left: calc(25% + 4px); }
}

/* ---------- hero ---------- */
.hero { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 56px; }
.hero-portrait { aspect-ratio: 4 / 5; max-width: 420px; }
.hero-portrait img { -webkit-mask-image: none; mask-image: none; filter: none; }
.hero-meta { padding-top: 0; }
.hero-meta > * { background: var(--paper); width: fit-content; max-width: 100%; }
.hero-name { font-size: clamp(30px, 6vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -.045em; margin-bottom: 10px; }
.hero-name-th { font-size: var(--fs-b); font-weight: 400; color: var(--mid); margin-bottom: 14px; }
.hero-tagline { font-size: var(--fs-b); color: var(--ink); max-width: 52ch; min-height: 3.2em; }
.hero-contact { gap: 8px 20px; font-size: var(--fs-b); margin-top: 20px; background: none; }
.hero-contact .sl-link { font-size: var(--fs-b); background: var(--paper); }
@media (min-width: 768px) {
  .hero { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px; }
  .hero-portrait { max-width: none; }
}
.tw-typing::after { color: var(--ink); }

/* ---------- sections: a white panel with a rule on top ---------- */
.section, .section.sec-01, .section.sec-02, .section.sec-03, .section.sec-04, .section.sec-05, .section.sec-06, .section.sec-07 {
  --sec-bg: none;
  background: var(--paper);
  border: 0;
  border-top: 4px solid var(--sec-ink, var(--ink));
  padding: 22px 22px 30px;
  margin-bottom: 40px;
  transition: none;
}
.sec-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; align-items: baseline; }
.sec-num { border: 0; background: none; padding: 0; font-size: var(--fs-s); font-weight: 700; letter-spacing: 0; color: var(--sec-ink, var(--mid)); color: color-mix(in srgb, var(--sec-ink, #595959) 72%, #000); }
.sec-title { font-size: var(--fs-h); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }

.prose { font-size: var(--fs-b); line-height: 1.75; max-width: 60ch; }
.prose::first-line { font-weight: 400; color: var(--ink); }
.prose strong, .prose b { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sec-ink, #ddd) 28%, #fff) 62%); }

.callout-mark { color: var(--mid); letter-spacing: 0; }
.callout-mark::before, .callout-mark::after { content: none; }
.callout-text { font-style: normal; font-size: var(--fs-h); line-height: 1.25; letter-spacing: -.02em; border-left: 1px solid var(--ink); background: none; padding: 0 0 0 20px; }

.tl-item { border-top: 1px solid var(--ink); }
.tl-item:first-child { border-top: 0; }
.tl-item:hover { background: none; }
.tl-year { color: var(--sec-ink, var(--mid)); color: color-mix(in srgb, var(--sec-ink, #595959) 72%, #000); font-weight: 700; font-size: var(--fs-s); }
.tl-title { font-size: var(--fs-b); font-weight: 700; }
.tl-desc { font-size: var(--fs-b); color: var(--ink); }

.kv-list { gap: 0 24px; }
.kv-row, .kv-row:nth-child(2), .kv-row:nth-child(3), .kv-row:nth-child(4) { background: none; border: 0; border-top: 3px solid var(--sec-ink, var(--ink)); padding: 14px 0 18px; transition: none; }
.kv-row:hover { transform: none; }
.kv-key { color: var(--sec-ink, var(--ink)); color: color-mix(in srgb, var(--sec-ink, #111) 72%, #000); font-size: var(--fs-s); font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.kv-val { font-size: var(--fs-b); }

.portfolio-title { font-size: var(--fs-b); font-weight: 700; }
.portfolio-role { font-size: var(--fs-s); }
.portfolio-role { color: var(--mid); letter-spacing: 0; }
.portfolio-desc, .song-intro, .embed-caption { font-size: var(--fs-b); color: var(--ink); }
.embed-caption { font-size: var(--fs-s); color: var(--mid); }
.website-preview { border-color: var(--ink); }
.video-frame, .tiktok-wrap, .spotify-wrap { border-color: var(--ink); }

.photo-frame, .photo-frame:nth-child(even), .photo-frame:nth-child(odd), .photo-frame:nth-child(3n) { background: none; padding: 0; border: 0; transform: none; }
.photo-frame:hover { transform: none !important; }
.photo-frame img { border: 0; }
.photo-frame .embed-caption { text-align: left; font-size: var(--fs-s); color: var(--mid); }

.vsco-banner { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); height: 140px; transition: none; }
.vsco-banner:hover { transform: none; color: var(--ink); background: var(--soft, #f4f4f4); }
.vsco-logo { font-weight: 700; letter-spacing: 0; }

.song-lyrics { background: none; border: 0; border-left: 1px solid var(--ink); padding: 0 0 0 20px; transform: none; color: var(--ink); font-size: var(--fs-b); line-height: 2; max-width: 52ch; margin-top: 20px; }
.song-lyrics::before { display: none; }

.gal-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0 0 8px; }
.gal-strip a { display: block; text-decoration: none; }
.gal-strip a:nth-child(2) { margin-top: 28px; }

/* ---------- contact and footer ---------- */
.ascii-rule { display: none; }
.comment { background: var(--paper); width: fit-content; font-size: var(--fs-b); font-weight: 700; letter-spacing: 0; margin-bottom: 0; padding: 14px 20px 6px; }
.comment::before { content: none; }
.social-links-minimal { background: var(--paper); margin: 0 0 40px; padding: 8px 20px 24px; gap: 8px 24px; }
.sl-link { font-size: var(--fs-b); font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; transition: none; color: var(--ink); }
.sl-link.email { text-decoration-color: #3B5FC0; }
.sl-link.fb { text-decoration-color: #1877F2; }
.sl-link.tiktok { text-decoration-color: #FE2C55; }
.sl-link.ig { text-decoration-color: #C13584; }
.sl-link.yt { text-decoration-color: #E00000; }
.sl-link.sub { text-decoration-color: #FF6719; }
.sl-link.gallery { text-decoration-color: #111; }
.sl-link:hover { opacity: 1; transform: none; }
.foot { background: var(--paper); border-top: 1px solid var(--ink); padding: 16px 20px; margin-top: 0; font-size: var(--fs-s); color: var(--mid); }

@media (max-width: 767px) {
  .section, .section.sec-01, .section.sec-02, .section.sec-03, .section.sec-04, .section.sec-05, .section.sec-06, .section.sec-07 { padding: 18px 16px 24px; }
  .comment { padding-left: 16px; } .social-links-minimal { padding-left: 16px; padding-right: 16px; } .foot { padding-left: 16px; padding-right: 16px; }
  .hero { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition: none; } }

/* embeds must never widen the page */
.embed-grid, .tiktok-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.embed-grid > *, .tiktok-grid > * { min-width: 0; }
.tiktok-wrap { max-width: 100%; overflow: hidden; }
@media (max-width: 1100px) { .tiktok-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .embed-grid { grid-template-columns: minmax(0, 1fr); } }
.tiktok-embed { min-width: 0 !important; max-width: 100% !important; }

/* inline-styled small text on the about page: raise it to the shared small size, darker */
[style*="font-size: 10px"], [style*="font-size: 11.5px"], [style*="font-size: 13px"] { font-size: var(--fs-s) !important; }
[style*="color: #A0A0A0"], [style*="color: var(--ink-faint)"] { color: var(--mid) !important; }
.my-music-links a { color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: #1db954 !important; text-decoration-thickness: 2px !important; margin-left: 8px; }

/* ---------- room to breathe: one rhythm of spacing for the whole page ----------
   Sections are separated by a wide gap. Inside a section the heading, each entry and each block get their own air. */
.hero { margin-bottom: clamp(88px, 14vw, 144px); }
.section, .section.sec-01, .section.sec-02, .section.sec-03, .section.sec-04, .section.sec-05, .section.sec-06, .section.sec-07 {
  padding: 36px 20px 52px;
  margin-bottom: clamp(112px, 18vw, 192px);
}
@media (min-width: 768px) {
  .section, .section.sec-01, .section.sec-02, .section.sec-03, .section.sec-04, .section.sec-05, .section.sec-06, .section.sec-07 { padding: 48px 32px 68px; }
}
.sec-head { margin-bottom: 44px; }
.prose { line-height: 1.9; }
.prose + .prose, .prose p + p { margin-top: 26px; }
.callout-text { line-height: 1.4; }
.tl-item { padding: 32px 0; gap: 0 24px; }
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { padding-top: 4px; line-height: 1.6; }
.tl-title { margin-bottom: 10px; line-height: 1.5; }
.tl-desc { line-height: 1.8; }
.tl-desc + .gal-strip, .tl-desc + .photo-gallery, .tl-desc + a, .tl-desc + .website-preview { margin-top: 20px; }
.kv-list { gap: 12px 32px; }
.kv-row, .kv-row:nth-child(2), .kv-row:nth-child(3), .kv-row:nth-child(4) { padding: 20px 0 30px; }
.kv-key { margin-bottom: 12px; }
.kv-val { line-height: 1.8; }
.portfolio-item { margin-bottom: 80px; }
.portfolio-item:last-child { margin-bottom: 0; }
.portfolio-role { margin-bottom: 16px; }
.portfolio-desc { line-height: 1.8; margin-bottom: 32px; }
.tiktok-grid { gap: 32px; margin-bottom: 48px; }
.embed-grid { gap: 32px; }
.embed-caption { margin-top: 12px; line-height: 1.6; }
.photo-gallery { gap: 28px; margin-top: 28px; }
.gal-strip { gap: 16px; margin-bottom: 0; }
.song-intro { margin-bottom: 24px; line-height: 1.8; }
.song-lyrics { line-height: 2.1; margin-top: 36px; }
.comment { padding-top: 0; padding-bottom: 12px; }
.social-links-minimal { margin-bottom: 96px; padding-bottom: 32px; gap: 14px 28px; }
.foot { padding-top: 24px; padding-bottom: 40px; }
@media (max-width: 767px) {
  .section, .section.sec-01, .section.sec-02, .section.sec-03, .section.sec-04, .section.sec-05, .section.sec-06, .section.sec-07 { padding: 32px 20px 48px; }
  .comment, .social-links-minimal, .foot { padding-left: 20px; padding-right: 20px; }
  .tl-item { grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; }
}

/* ---------- section headings in dither (same device as the home page and the gallery) ---------- */
.sec-head { display: block; margin-bottom: 40px; }
.sec-num { display: none; }
.sec-title { display: inline-block; font-family: var(--sans); font-size: clamp(34px, 7vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.04em; padding-bottom: .08em; opacity: .42;
  color: transparent; -webkit-text-fill-color: transparent; background-image: var(--d8); background-size: 4px 4px; -webkit-background-clip: text; background-clip: text; image-rendering: pixelated; }
.sec-02 .sec-head, .sec-04 .sec-head, .sec-06 .sec-head { text-align: right; }

/* ---------- lyrics: a hand-written face, not a machine one ---------- */
:root body .song-lyrics, :root body .song-lyrics * { font-family: "Mali", "IBM Plex Sans Thai", sans-serif !important; font-size: 18px; line-height: 2.15; font-weight: 400; letter-spacing: 0; color: var(--ink); }

/* the TikTok cards are the one place the flat rules above are lifted: round play button, hard colour offsets */
:root body .tt-play .tt-disc, :root body .tt-play .tt-disc::after { border-radius: 50% !important; }
:root body .tt-play .tt-disc { box-shadow: -4px -4px 0 #25F4EE, 4px 4px 0 #FE2C55 !important; }
:root body .tt-play .tt-pill { box-shadow: 4px 4px 0 #25F4EE !important; }
:root body .tt-play:hover .tt-pill { box-shadow: 6px 6px 0 #25F4EE !important; }
:root body .tt-play:active .tt-pill { box-shadow: 0 0 0 #25F4EE !important; }
