/*
 * Teddy88 Atelier
 * Shared colors and spacing keep the photographs, articles and guides in one edition.
 */
:root {
  --ink: #0a172b;
  --navy: #11253d;
  --blue: #28476a;
  --slate: #47586a;
  --silver: #cdd5df;
  --ivory: #f7f6ef;
  --paper: #fdfcf8;
  --mist: #eaf0f4;
  --rule: #cbd2d5;
  --frame: 1240px;
  --gutter: clamp(20px, 5vw, 76px);
  --section: clamp(56px, 7vw, 104px);
  --sans: 'Fahkwang', 'Noto Sans Thai', 'Leelawadee UI', Tahoma, Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Baskervville', 'Times New Roman', Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, summary { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: clamp(1.65rem, 3vw, 2.75rem); font-weight: 600; }
h3 { font-weight: 600; }
::selection { background: #b9d5e9; color: var(--ink); }
:focus-visible { outline: 3px solid #317eb2; outline-offset: 4px; }
.cover :focus-visible, .closing :focus-visible { outline-color: #a2d9ff; }
.frame { width: min(calc(100% - var(--gutter) * 2), var(--frame)); margin-inline: auto; }
.screen-reader-text, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99999; padding: 8px 16px; background: white; }

/* Masthead and member links */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid rgba(10, 23, 43, .14);
}
.admin-bar .mast { top: 32px; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 48px); min-height: 76px; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.wordmark span { color: #516475; font-style: italic; }
.main-menu { min-width: 0; margin-inline: auto; }
.main-menu ul, .closing nav ul { margin: 0; padding: 0; list-style: none; }
.main-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(16px, 2.6vw, 42px); }
.main-menu a, .sign-in { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 600; }
.main-menu a:hover, .sign-in:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.mast-actions, .cover-actions { display: flex; align-items: center; }
.mast-actions { flex: 0 0 auto; gap: 20px; }
.sign-in { gap: 6px; }
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .9em;
  min-height: 46px;
  max-width: 100%;
  padding: .55em 1.25em;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.action span { font-family: Arial, sans-serif; font-size: 1em; font-weight: 400; }
.ink-action { background: var(--ink); color: white; }
.ink-action:hover { background: var(--blue); }
.light-action { background: var(--ivory); color: var(--ink); }
.light-action:hover { background: white; }
.line-action { color: white; border-color: #a4b0bd; background: rgba(10, 23, 43, .52); }
.line-action:hover { background: #233b55; border-color: white; }
.nav-toggle { display: none; }

/* The desktop and mobile covers are individually composed photographs. */
.cover { position: relative; isolation: isolate; background: #07101e; color: var(--paper); }
.cover-art, .cover-art picture, .cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art { z-index: -2; }
.cover-art img { object-fit: cover; object-position: 80% 67%; }
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 12, 24, .76), rgba(5, 15, 28, .47) 36%, transparent 70%);
}
.cover-inner { display: grid; align-items: center; min-height: clamp(470px, 43vw, 650px); padding-block: clamp(50px, 5vw, 90px); }
.cover-copy { max-width: min(47%, 39rem); }
.cover-copy h1 { font-size: clamp(1.65rem, 2.5vw, 2.6rem); font-weight: 500; line-height: 1.4; }
.cover-name { display: block; margin: 0 0 .14em -.04em; font-family: var(--serif); font-size: clamp(5.25rem, 9vw, 8.4rem); font-weight: 400; line-height: .91; letter-spacing: -.072em; }
.cover-name i { color: #ced9e4; font-weight: 400; }
.cover-copy p { margin-top: 1em; max-width: 34rem; color: #e3e8ec; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.8; }
.cover-actions { margin-top: 1.7rem; gap: 12px; flex-wrap: wrap; }
.member-strip { background: #e7eced; border-block: 1px solid #c9d2d5; }
.member-inner { display: grid; grid-template-columns: .95fr 1.22fr 1.22fr; align-items: center; gap: clamp(18px, 3vw, 48px); padding-block: 16px; }
.member-heading { display: flex; align-items: center; gap: 15px; }
.member-heading img { width: clamp(62px, 6vw, 82px); height: 62px; object-fit: cover; }
.member-heading h2 { font-size: 1.15rem; }
.member-inner > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 54px; padding-left: clamp(15px, 2.2vw, 34px); border-left: 1px solid #aab9c3; font-weight: 600; line-height: 1.5; }
.member-inner small { display: block; margin-top: 3px; color: var(--slate); font-size: .83rem; font-weight: 400; }
.member-inner b, .read-link b, .text-link span { font-family: Arial, sans-serif; font-weight: 400; }
.member-inner a:hover span, .text-link:hover, .read-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Feature and guide index */
.collection, .questions { padding-block: var(--section); }
.section-line, .journal-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-line { padding-bottom: clamp(20px, 2.5vw, 32px); border-bottom: 1px solid var(--ink); }
.section-line p { max-width: 38ch; color: var(--slate); line-height: 1.65; }
.collection-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 48px); margin-top: 24px; }
.lead-story { display: flex; flex-direction: column; min-width: 0; }
.lead-story > img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.lead-story > div { padding: clamp(15px, 1.6vw, 24px) 0 0; }
.lead-story h3 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
.lead-story p, .story-row p { color: var(--slate); }
.lead-story p { margin: .4em 0 .6em; max-width: 36rem; }
.read-link, .text-link { display: inline-flex; align-items: center; gap: .75em; color: var(--blue); font-weight: 600; }
.read-link { font-size: .9rem; }
.story-list { display: flex; flex-direction: column; }
.story-row { min-width: 0; display: grid; grid-template-columns: minmax(104px, .88fr) minmax(0, 1.3fr); align-items: center; gap: clamp(14px, 1.6vw, 25px); padding-block: clamp(17px, 1.7vw, 25px); border-top: 1px solid var(--rule); }
.story-row:first-child { padding-top: 0; border-top: 0; }
.story-row:last-child { padding-bottom: 0; }
.story-photo { position: relative; overflow: hidden; background: var(--mist); }
.story-photo img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.story-row h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.story-row p { margin: .2rem 0 .35rem; font-size: .94rem; line-height: 1.65; }
.lead-story:hover h3, .story-row:hover h3, .read-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Articles, questions and footer */
.journal { padding-block: var(--section); background: var(--mist); border-block: 1px solid #d4dee3; }
.journal-heading { padding-bottom: 24px; }
.read-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 40px); }
.read-card { min-width: 0; }
.read-cover { display: block; background: var(--silver); }
.read-cover img { width: 100%; aspect-ratio: 1.75; object-fit: cover; }
.read-body { padding-block: 17px; }
.read-meta, .article-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .81rem; color: var(--slate); }
.read-meta span { color: var(--blue); font-weight: 600; }
.read-body h3 { margin: .55rem 0 .5rem; font-size: clamp(1.17rem, 1.55vw, 1.5rem); }
.read-body p { color: var(--slate); font-size: .94rem; line-height: 1.7; }
.questions { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(38px, 6vw, 92px); align-items: start; }
.house { background: var(--paper); border: 1px solid var(--rule); }
.house-photo img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.house-copy { padding: clamp(18px, 2.5vw, 34px); }
.house-copy h2 { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.house-copy p { margin: .5rem 0 .75rem; color: var(--slate); }
.faq h2 { margin-bottom: 15px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 59px; padding-block: 15px; cursor: pointer; font-weight: 600; line-height: 1.55; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font: 400 1.55rem/1 Arial, sans-serif; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1em; color: var(--slate); }
.closing { color: #e6edf4; background: var(--ink); padding-top: clamp(45px, 5.5vw, 85px); }
.closing .wordmark { color: white; font-size: clamp(2.65rem, 4.6vw, 4.5rem); }
.closing .wordmark span { color: var(--silver); }
.closing-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: clamp(28px, 5vw, 80px); }
.closing-grid p { margin-top: 1.1rem; max-width: 29ch; color: #c5d0dc; }
.closing nav h2 { margin-bottom: .75em; font-size: 1.07rem; }
.closing nav a { display: inline-block; padding-block: .18rem; color: #cbd6df; }
.closing nav a:hover { color: white; text-decoration: underline; }
.colophon { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid #354457; margin-top: 40px; padding-block: 22px; color: #bec9d5; font-size: .82rem; }

/* Individual guides and articles */
.inner-head { padding-block: clamp(32px, 5vw, 72px); background: var(--mist); border-bottom: 1px solid #ced9df; }
.crumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65em; margin-bottom: 20px; font-size: .87rem; line-height: 1.55; color: var(--slate); overflow-wrap: anywhere; }
.crumb a, .article-byline a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-byline { margin-bottom: 8px; }
.inner-head h1 { max-width: 29em; font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 600; line-height: 1.3; }
.inner-head p { max-width: 45rem; margin-top: .85em; color: var(--slate); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.reading { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; padding-block: var(--section); }
.prose { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.02rem, 1.2vw, 1.13rem); line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ol, .prose ul, .prose blockquote { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li + li { margin-top: .3em; }
.prose h2, .prose h3 { margin: 1.45em 0 .65em; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.prose h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.prose a:not(.action) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid #899fb1; padding: .4rem 1rem; background: var(--mist); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { padding: .6em .8em; border: 1px solid var(--rule); text-align: start; }
.prose figure { max-width: 100%; margin: 1em 0; }
.reading-side { background: var(--paper); border: 1px solid var(--rule); }
.reading-side img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.reading-side .text-link { padding: 16px 20px; }
.outbound { margin: 32px 0 0; padding: 20px; background: var(--mist); }
.outbound p { margin: 12px 0 0; color: var(--slate); font-size: .91rem; }
.post-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.archive-body, .missing { padding-block: var(--section); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { min-width: 36px; text-align: center; padding: 4px 8px; border: 1px solid var(--rule); }
.pagination .current { color: white; background: var(--ink); }
.missing h1 { margin: .2em 0; font-size: clamp(2.5rem, 6vw, 5rem); }
.missing .action { margin-top: 18px; }

@media (max-width: 1000px) {
  .cover-copy { max-width: 57%; }
  .member-inner { grid-template-columns: .75fr 1fr 1fr; }
  .member-heading { gap: 9px; }
  .member-heading img { width: 48px; height: 48px; }
  .story-row { grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr); gap: 12px; }
}
@media (max-width: 860px) {
  .mast-inner { min-height: 64px; flex-wrap: wrap; gap: 0 8px; padding-block: 7px; }
  .mast-actions { margin-left: auto; gap: 12px; }
  .main-menu { order: 3; width: 100%; margin: 0; }
  .main-menu ul { justify-content: flex-start; gap: 0 16px; }
  .nav-ready .main-menu { display: none; }
  .nav-ready .menu-open .main-menu { display: block; padding-block: 8px; border-top: 1px solid var(--rule); }
  .nav-ready .nav-toggle { display: inline-grid; place-content: center; gap: 5px; width: 42px; height: 42px; background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; }
  .nav-toggle span { display: block; width: 17px; height: 2px; background: currentColor; }
  .menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .section-line { align-items: start; }
  .section-line p { max-width: 28ch; }
  .member-inner { gap: 12px; }
  .member-heading { flex-direction: column; align-items: flex-start; }
  .member-heading img { width: 65px; height: 44px; }
  .member-inner > a { font-size: .95rem; }
  .collection-layout { grid-template-columns: 1fr; }
  .lead-story > img { aspect-ratio: 2; }
  .story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .story-row, .story-row:first-child, .story-row:last-child { display: block; border: 0; padding: 0; }
  .story-photo { margin-bottom: 10px; }
  .story-photo img { aspect-ratio: 1.65; }
  .questions { gap: 32px; }
}
@media (max-width: 782px) { .admin-bar .mast { top: 46px; } }
@media (max-width: 640px) {
  :root { --gutter: clamp(16px, 5vw, 28px); --section: 48px; }
  .mast-inner { min-height: 60px; }
  .mast-actions { gap: 8px; }
  .mast-actions .action { padding: .4em .8em; min-height: 40px; font-size: .87rem; gap: .4em; }
  .mast-actions .sign-in { font-size: .82rem; }
  .mast-actions .sign-in span { display: none; }
  .wordmark { font-size: 2.25rem; }
  .cover-inner { align-items: start; min-height: clamp(540px, 123vw, 700px); padding-top: clamp(44px, 10vw, 80px); padding-bottom: 140px; }
  .cover-art img { object-position: 60% 72%; }
  .cover::before { background: linear-gradient(180deg, rgba(4, 13, 26, .7), rgba(4, 13, 26, .5) 50%, transparent 88%); }
  .cover-copy { width: 100%; max-width: 28rem; }
  .cover-name { font-size: clamp(4.8rem, 14vw, 6.8rem); }
  .cover-copy h1 { font-size: clamp(1.55rem, 4.7vw, 1.85rem); }
  .cover-copy p { margin-top: .7em; font-size: .99rem; }
  .cover-actions { margin-top: 18px; gap: 8px; }
  .cover-actions .action { min-height: 44px; padding: .5em .8em; font-size: .94rem; gap: .4em; }
  .member-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 15px 9px; }
  .member-heading { flex-direction: row; align-items: center; margin-bottom: 10px; }
  .member-heading img { width: 60px; height: 40px; }
  .member-inner > a { border-left: 0; border-top: 1px solid #bdc8ce; min-height: 54px; padding: 8px 0; }
  .section-line { display: block; padding-bottom: 16px; }
  .section-line p { margin-top: 7px; max-width: 100%; }
  .collection-layout { margin-top: 17px; gap: 22px; }
  .lead-story > img { aspect-ratio: 1.6; }
  .story-list { display: block; }
  .story-row, .story-row:first-child, .story-row:last-child { display: grid; grid-template-columns: minmax(90px, .78fr) minmax(0, 1.22fr); gap: 13px; padding-block: 14px; border-top: 1px solid var(--rule); }
  .story-photo { margin-bottom: 0; }
  .story-photo img { aspect-ratio: 1.15; }
  .story-row p { font-size: .89rem; }
  .journal-heading { align-items: center; gap: 14px; padding-bottom: 18px; }
  .journal-heading .text-link { font-size: .86rem; gap: .4em; }
  .read-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .read-body { padding-block: 12px 0; }
  .read-body h3 { font-size: 1.24rem; }
  .questions, .reading { grid-template-columns: minmax(0, 1fr); }
  .questions { gap: 36px; }
  .house-photo img { aspect-ratio: 2.1; }
  .closing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .closing-grid > div:first-child { grid-column: 1 / -1; }
  .closing-grid p { margin-top: 8px; max-width: 100%; }
  .closing nav a { font-size: .91rem; padding-block: 3px; }
  .colophon { flex-wrap: wrap; gap: 3px 12px; padding-block: 16px; }
  .reading { gap: 28px; }
  .inner-head h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .reading-side img { aspect-ratio: 1.9; }
}
@media (max-width: 370px) {
  :root { --gutter: 14px; }
  .mast-actions { gap: 6px; }
  .mast-actions .action { padding-inline: .55em; }
  .nav-ready .nav-toggle { width: 36px; height: 40px; }
  .wordmark { font-size: 1.95rem; }
  .cover-actions .action { font-size: .87rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
