/*
Theme Name: Morrow
Theme URI: https://example.com/morrow
Author: Open Studio
Description: A warm, editorial WordPress theme for news, online education, and research journals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: morrow
*/

:root {
  --paper: #f3eee6;
  --paper-deep: #e8dfd2;
  --ink: #1d1e1b;
  --muted: #77736c;
  --line: rgba(29, 30, 27, .16);
  --coral: #ef6847;
  --lime: #d8e77b;
  --serif: "Bodoni 72", "Didot", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
.site-shell { margin: 0 auto; max-width: 1440px; padding: 0 4vw; }
.site-header { align-items: center; display: flex; justify-content: space-between; padding: 28px 0; }
.site-brand { align-items: center; display: inline-flex; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { background: var(--coral); border-radius: 50%; display: inline-block; height: 15px; width: 15px; }
.primary-nav ul { align-items: center; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:hover, .text-link:hover { color: var(--coral); }
.menu-toggle { display: none; }
.hero { border-top: 1px solid var(--line); display: grid; gap: 5vw; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); padding: 9vw 0 10vw; }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .16em; margin: 0 0 22px; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: clamp(4rem, 10vw, 9.5rem); font-weight: 400; letter-spacing: -.07em; line-height: .82; margin: 0; max-width: 900px; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-aside { align-self: end; border-left: 1px solid var(--ink); margin-bottom: 7px; padding-left: 24px; }
.hero-aside p { font-size: 17px; margin: 0 0 24px; max-width: 290px; }
.text-link { border-bottom: 1px solid var(--ink); display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding-bottom: 4px; text-transform: uppercase; }
.intro-band { background: var(--ink); color: var(--paper); margin: 0 -4vw; padding: 7vw 4vw; }
.intro-band-inner { display: grid; gap: 6vw; grid-template-columns: .7fr 1.3fr; margin: 0 auto; max-width: 1200px; }
.section-label { color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .16em; margin: 5px 0 0; text-transform: uppercase; }
.intro-band h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.05em; line-height: .94; margin: 0; max-width: 720px; }
.home-section { padding: 9vw 0; }
.news-section { border-top: 1px solid var(--line); }
.section-heading { align-items: baseline; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 34px; padding-bottom: 18px; }
.section-heading > div { min-width: 0; }
.section-heading .section-label { margin-bottom: 12px; }
.section-heading h2 { font-family: var(--serif); font-size: 42px; font-weight: 400; letter-spacing: -.05em; line-height: 1; margin: 0; }
.section-heading span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tab-list { display: flex; gap: 26px; margin-bottom: 34px; overflow-x: auto; }
.tab-button { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 0 0 8px; text-transform: uppercase; }
.tab-button:hover, .tab-button.is-active { border-color: var(--coral); color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.empty-state { color: var(--muted); margin: 0; }
.post-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.post-card { min-width: 0; }
.post-card:nth-child(2) { margin-top: 7vw; }
.post-card:nth-child(3) { margin-top: 2vw; }
.post-card-image { aspect-ratio: 4 / 3; background: var(--paper-deep); overflow: hidden; }
.post-card-image img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-meta { color: var(--muted); font-size: 11px; letter-spacing: .08em; margin: 18px 0 8px; text-transform: uppercase; }
.post-card-meta::first-line { color: var(--coral); }
.post-card h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 0; }
.education-section { background: var(--ink); color: var(--paper); display: grid; gap: 8vw; grid-template-columns: .9fr 1.1fr; margin: 0 -4vw; padding: 8vw 4vw; }
.education-intro h2 { font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .9; margin: 0 0 28px; max-width: 620px; }
.education-intro > p:last-child { color: rgba(243, 238, 230, .72); font-size: 18px; max-width: 390px; }
.education-actions { align-self: end; border-top: 1px solid rgba(243, 238, 230, .28); }
.action-link { align-items: center; border-bottom: 1px solid rgba(243, 238, 230, .28); display: flex; font-size: 16px; justify-content: space-between; padding: 21px 0; }
.action-link span:last-child { color: var(--lime); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.action-link:hover span:last-child { transform: translateX(5px); }
.action-link-primary { color: var(--lime); font-weight: 700; }
.research-section { border-top: 1px solid var(--line); }
.research-list { border-top: 1px solid var(--line); }
.research-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 140px 1fr 40px; padding: 24px 0; }
.research-item .post-card-meta { margin: 0; }
.research-item h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin: 0; }
.research-arrow { font-size: 27px; justify-self: end; }
.site-footer { background: var(--lime); margin: 0 -4vw; padding: 5vw 4vw 28px; }
.footer-inner { display: flex; justify-content: space-between; margin: 0 auto; max-width: 1200px; }
.footer-title { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.06em; line-height: .9; margin: 0; }
.footer-note { font-size: 12px; margin-top: 5px; text-align: right; }
.footer-bottom { border-top: 1px solid rgba(29, 30, 27, .25); display: flex; justify-content: space-between; margin: 6vw auto 0; max-width: 1200px; padding-top: 14px; }
.footer-bottom p { font-size: 11px; letter-spacing: .07em; margin: 0; text-transform: uppercase; }
.content-page { border-top: 1px solid var(--line); padding: 8vw 0; }
.content-page h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.06em; line-height: .9; margin: 0 0 50px; }
.entry-content { font-size: 19px; max-width: 760px; }
.entry-content > * { margin-left: 0; margin-right: 0; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
.entry-content a { color: var(--coral); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.single-article { padding-bottom: 8vw; }
.single-header { margin: 0 auto 54px; max-width: 980px; text-align: center; }
.single-header .eyebrow { margin-bottom: 20px; }
.single-header h1 { margin-bottom: 0; }
.single-featured-image { margin: 0 auto 58px; max-width: 1120px; }
.single-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.single-featured-image figcaption { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; padding: 12px 0; text-transform: uppercase; }
.single-entry-content { font-size: 19px; margin: 0 auto; max-width: 760px; text-align: justify; text-justify: inter-word; }
.single-entry-content p { text-align: justify; }
.single-entry-content > .wp-block-image { margin-left: 0; margin-right: 0; }
.archive-header { border-top: 1px solid var(--line); padding: 8vw 0 4vw; }
.archive-header h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.06em; line-height: .9; margin: 0; }
.pagination { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 25px; }
.pagination .nav-links { display: flex; gap: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.not-found { min-height: 55vh; }
@media (max-width: 720px) {
  .site-shell { padding: 0 22px; }
  .site-header { padding: 22px 0; }
  .primary-nav { display: none; }
  .menu-toggle { background: none; border: 0; display: block; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 0; text-transform: uppercase; }
  .hero { display: block; padding: 21vw 0 24vw; }
  .hero h1 { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-aside { margin-top: 54px; }
  .intro-band, .site-footer { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .intro-band-inner, .statement { display: block; }
  .intro-band h2 { margin-top: 38px; }
  .section-heading { align-items: flex-start; display: block; }
  .section-heading > span { display: block; margin-top: 18px; }
  .education-section { display: block; margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .education-actions { margin-top: 52px; }
  .post-grid { display: block; }
  .post-card, .post-card:nth-child(2), .post-card:nth-child(3) { margin: 0 0 50px; }
  .section-heading h2 { font-size: 34px; }
  .single-header { margin-bottom: 36px; text-align: left; }
  .single-featured-image { margin-bottom: 42px; }
  .single-featured-image img { aspect-ratio: 4 / 3; }
  .single-entry-content { font-size: 18px; }
  .research-item { gap: 10px; grid-template-columns: 1fr 30px; }
  .research-item .post-card-meta { grid-column: 1 / -1; }
  .research-item h3 { grid-column: 1; }
  .research-arrow { grid-column: 2; grid-row: 2; }
  .footer-inner { display: block; }
  .footer-note { text-align: left; }
  .footer-bottom { display: block; margin-top: 60px; }
  .footer-bottom p + p { margin-top: 8px; }
}