/*
Theme Name: econsoojin.com Academic
Description: Soo Jin Kim's academic homepage, 2026 design: text first, Newsreader and Inter on warm paper.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: econsoojin
*/

/* Fonts: self-hosted, SIL Open Font License (assets/fonts/OFL-*.txt). */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens (Penpot "econsoojin.com — Academic design (v2)"). */
:root {
	--paper: #faf9f5;
	--parchment: #f5f4ed;
	--ink: #141413;
	--olive: #5e5d59;
	--stone: #6e6d67; /* the mockup's #87867f, darkened to pass WCAG AA on paper */
	--hairline: #e8e6dc;
	--link: #1f4e8c;
	--serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1040px;
	--gutter: 56px;
	--aside: 240px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 19px/1.6 var(--serif); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p, ul, ol, table, figure { margin: 0; }
cite { font-style: italic; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; font: 500 14px var(--sans); }
.skip-link:focus { left: 8px; }

/* Masthead */
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.site-title { font: 500 28px/1.2 var(--serif); letter-spacing: -0.01em; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 32px; padding: 0; margin: 0; }
.site-nav a { font: 400 15px/1.4 var(--sans); color: var(--olive); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .current-menu-item > a { color: var(--ink); text-decoration: underline; }
.menu-toggle { display: none; }

/* Shared text pieces */
.label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.meta, .entry-content .meta { font: 400 14px/1.5 var(--sans); color: var(--stone); }
.lede { font-size: 21px; line-height: 1.5; color: var(--olive); }
.ref { display: block; margin-top: 6px; font: 500 13px/1.5 var(--sans); text-decoration: none; }
.ref:hover { text-decoration: underline; }
ul.plain { list-style: none; padding: 0; }

/* Page and post layout */
.site-main { padding-bottom: 96px; }
.page-header { padding-top: 64px; }
.page-title { font-size: 52px; line-height: 1.1; }
.entry-content { margin-top: 18px; }
.entry-content > * + * { margin-top: 18px; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-left: 1.2em; }
.entry-content li + li { margin-top: 8px; }

/* Home: the "Welcome!" post (content/post--hello-world.html) */
.home-content { padding-top: 64px; }
.home-intro { display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.aside-block { margin-top: 36px; }
.aside-block .label { margin-bottom: 8px; }
.aside-text { font-size: 17px; line-height: 1.55; }
.aside-text.muted { color: var(--olive); margin-top: 4px; }
.aside-block .meta { margin-top: 4px; }
.home-main .name { font-size: 56px; line-height: 1.08; }
.home-main .position { margin-top: 14px; font-size: 22px; line-height: 1.4; font-style: italic; color: var(--olive); }
.home-main .position + p { margin-top: 28px; }
.home-main p + p { margin-top: 16px; }
.home-main .label { margin-top: 36px; margin-bottom: 10px; }
.home-main ul.plain li + li { margin-top: 2px; }
.more { margin-top: 32px; font: 500 15px/1.5 var(--sans); }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Sections: title on the left, content on the right */
.section { display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); column-gap: var(--gutter); margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hairline); scroll-margin-top: 24px; }
.section-head h2 { font-size: 30px; line-height: 1.2; }
.section-head .meta { margin-top: 8px; }
.page-header + .entry-content .section:first-of-type { margin-top: 48px; }

/* Citation lists */
ul.citations { list-style: none; padding: 0; }
ul.citations li { font-size: 18px; line-height: 1.55; }
ul.citations li + li { margin-top: 26px; }

/* "Recent" list: date, then what happened */
ul.recent { list-style: none; padding: 0; }
ul.recent li { display: grid; grid-template-columns: 156px minmax(0, 1fr); column-gap: 0; font-size: 18px; line-height: 1.55; }
ul.recent li + li { margin-top: 26px; }
ul.recent time { font: 400 14px/1.9 var(--sans); color: var(--stone); }

/* Research page */
.jump { margin-top: 28px; font: 400 14px/1.6 var(--sans); color: var(--stone); }
.jump span { margin-right: 6px; }
.jump a { font-weight: 500; text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* CV page */
.cv-download { font: 500 15px/1.6 var(--sans); }
.cv-download .meta { margin-left: 12px; font-size: 13px; }
ul.positions { list-style: none; padding: 0; }
ul.positions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
ul.positions li:first-child { padding-top: 0; }
ul.positions li + li { margin-top: 0; }
ul.positions .where { font-size: 19px; line-height: 1.4; }
ul.positions .role { grid-column: 1; font-size: 17px; line-height: 1.5; color: var(--olive); }
ul.positions .when { grid-column: 2; grid-row: 1; font: 400 14px/1.9 var(--sans); color: var(--stone); text-align: right; }

/* Teaching table */
table.teaching { width: 100%; margin-top: 40px; border-collapse: collapse; }
table.teaching th { padding: 0 16px 12px 0; text-align: left; font: 600 12px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); border-bottom: 1px solid var(--ink); }
table.teaching td { padding: 14px 16px 14px 0; vertical-align: top; font: 400 14px/1.6 var(--sans); color: var(--olive); border-bottom: 1px solid var(--hairline); }
table.teaching td:first-child { font: 400 18px/1.4 var(--serif); color: var(--ink); width: 32%; }
table.teaching td:nth-child(2) { width: 17%; }
table.teaching td:nth-child(3) { width: 23%; }
table.teaching td a { font-weight: 500; text-decoration: none; margin-left: 8px; }

/* Blog/archive fallbacks */
.post-list { list-style: none; padding: 0; margin-top: 32px; }
.post-list li + li { margin-top: 18px; }
.post-list a { font-size: 22px; color: var(--ink); text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.entry-meta { margin-top: 10px; }

/* Older content pasted from other editors */
.entry-content [style*="color"] { color: inherit !important; }
.entry-content .page .layoutArea:empty, .entry-content pre:empty { display: none; }

/* Footer */
.site-footer { background: var(--parchment); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 36px; padding-bottom: 36px; font: 400 13px/1.6 var(--sans); color: var(--olive); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner .copyright { margin-left: 16px; color: var(--stone); }

/* Small screens */
@media (max-width: 800px) {
	body { font-size: 18px; }
	.masthead-inner { padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
	.site-title { font-size: 22px; }
	.js .menu-toggle { display: block; background: none; border: 0; padding: 6px 0; font: 400 15px var(--sans); color: var(--olive); cursor: pointer; }
	.js .site-nav { display: none; flex-basis: 100%; }
	.js .site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 4px; }
	.site-nav li a { display: block; padding: 10px 0; font-size: 17px; }
	.page-header { padding-top: 40px; }
	.page-title { font-size: 40px; }
	.home-content { padding-top: 32px; }
	.home-intro, .section { grid-template-columns: minmax(0, 1fr); }
	.home-aside { display: contents; }
	.portrait { order: 0; width: 128px; }
	.home-main { order: 1; margin-top: 20px; }
	.home-aside .aside-block { order: 2; margin-top: 28px; }
	.home-main .name { font-size: 40px; }
	.home-main .position { font-size: 19px; }
	.section { margin-top: 48px; padding-top: 28px; }
	.section-head { margin-bottom: 20px; }
	.section-head h2 { font-size: 26px; }
	ul.recent li { grid-template-columns: minmax(0, 1fr); }
	table.teaching, table.teaching tbody, table.teaching tr, table.teaching td { display: block; width: auto !important; }
	table.teaching thead { position: absolute; left: -9999px; }
	table.teaching tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
	table.teaching td { padding: 0; border: 0; }
	table.teaching td + td { margin-top: 2px; }
	.footer-inner { flex-direction: column; }
	.footer-inner .copyright { margin-left: 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
