/* =====================================================================
   Junhao Chen — Academic Homepage
   Aesthetic: Editorial / Science-Journal
   Fraunces (display serif) · Newsreader (body serif) · Spline Sans Mono
   SLU Blue accent on warm paper, hairline rules, numbered sections
   ===================================================================== */

/* ===== Design Tokens ===== */
:root {
    /* SLU brand + editorial palette */
    --primary-color: #003da5;
    --primary-light: #1f6fd6;
    --primary-dark: #00276b;
    --secondary-color: #2e8bda;
    --accent: #003da5;

    --ink: #15181d;
    --paper: #faf8f2;
    --paper-2: #f3eee3;
    --surface: #efe9db;
    --text-primary: #15181d;
    --text-secondary: #494e57;
    --text-muted: #8a8472;
    --border-color: #e2dbca;
    --rule-strong: #15181d;

    --background: var(--paper);
    --background-alt: var(--paper-2);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Newsreader', Georgia, serif;
    --font-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;

    --shadow: 0 1px 2px rgba(20, 24, 29, 0.06);
    --shadow-lg: 0 24px 50px -28px rgba(20, 24, 29, 0.45);
    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    --maxw: 980px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 18px;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 242, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.nav-logo::after {
    content: ".";
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: var(--transition);
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 1.5px;
    margin: 6px auto;
    background-color: var(--ink);
    transition: var(--transition);
}

/* ===== Hero (editorial masthead) ===== */
.hero {
    padding: 132px 28px 72px;
}

.hero-content {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: start;
    gap: 3.5rem;
}

.hero-text {
    flex: 1;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.hero-eyebrow span {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.4rem;
}

.hero-text h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--primary-color);
}

.hero-rule {
    border: none;
    border-top: 2px solid var(--rule-strong);
    width: 64px;
    margin-bottom: 1.4rem;
}

.affiliation {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.affiliation a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.affiliation a:hover {
    color: var(--primary-dark);
}

.research-interests {
    margin-bottom: 2rem;
}

.research-interests h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.7rem;
}

.research-interests p {
    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.55;
    max-width: 38ch;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.contact-item a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Hero image — editorial framed portrait */
.hero-image {
    margin-top: 0.5rem;
    position: relative;
}

.avatar-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--rule-strong);
    box-shadow: 14px 14px 0 -1px var(--paper), 14px 14px 0 0 var(--rule-strong);
    background: var(--surface);
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.avatar-photo:hover img {
    transform: scale(1.04);
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule-strong);
}

.avatar-placeholder i {
    font-size: 5rem;
    color: var(--text-muted);
}

/* ===== Generic Section ===== */
.section {
    padding: 64px 28px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 2rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--rule-strong);
    display: block;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2.4rem;
    font-size: 1.15rem;
    max-width: 62ch;
}

/* ===== Tools grouping sections ===== */
.tools-section {
    margin-bottom: 3rem;
    padding: 0;
}

.tools-section:nth-child(even) {
    background: transparent;
}

/* ===== Publications ===== */
.publications-list {
    display: flex;
    flex-direction: column;
}

.publication-item {
    padding: 1.6rem 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    position: relative;
    transition: var(--transition);
}

.publication-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: -1px;
    width: 2px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.publication-item:hover::before {
    height: calc(100% + 1px);
}

.pub-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.pub-authors strong {
    color: var(--primary-color);
    font-weight: 600;
}

.pub-venue {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
}

.pub-link {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pub-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Projects ===== */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    padding: 1.8rem 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.project-links {
    display: flex;
    gap: 0.9rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.project-outcome {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.project-meta a,
.project-desc a,
.project-outcome a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.project-meta a:hover,
.project-desc a:hover,
.project-outcome a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-item ul,
.project-item ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.project-item li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tag {
    padding: 4px 11px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== Tools list ===== */
.tools-container {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.tools-category h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-category h4 i {
    color: var(--primary-color);
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 9px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.tool-item:hover {
    border-color: var(--primary-color);
    background: var(--paper-2);
    transform: translateY(-2px);
}

.tool-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.tool-item span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== States ===== */
.placeholder-note {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--paper-2);
    border-radius: 2px;
    text-align: center;
}

.loading {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 2rem;
    text-align: center;
}

.error {
    color: #b42318;
    font-size: 0.95rem;
    padding: 1rem;
    background: #fbeae8;
    border-radius: 2px;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 28px;
    background: transparent;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
}

/* ===== Page section wrapper ===== */
.page-section {
    padding-top: 124px;
    min-height: calc(100vh - 160px);
}

/* ===== Year Divider ===== */
.year-divider {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1.2rem 0 0.4rem;
    margin-top: 2.2rem;
    border-bottom: none;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.year-divider::before {
    content: "§ ";
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.year-divider:first-child {
    margin-top: 0;
}

/* ===== About ===== */
.about-content {
    background: var(--paper-2);
    padding: 2rem;
    border-radius: 2px;
    border-left: 2px solid var(--primary-color);
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Citation Count ===== */
.citation-count {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    margin-left: 0.5rem;
}

.citation-count i {
    margin-right: 0.25rem;
}

.citation-count.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Dimensions Badge ===== */
.pub-links .__dimensions_badge_embed__ {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.pub-links .__dimensions_badge_embed__ > span {
    vertical-align: middle;
}

/* ===== Featured Publication ===== */
.publication-item.featured {
    padding-left: 1.4rem;
    border-left: 2px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
    background: linear-gradient(100deg, rgba(0, 61, 165, 0.055) 0%, rgba(0, 61, 165, 0) 60%);
}

.publication-item.featured .pub-title {
    color: var(--primary-color);
}

.publication-item.featured::before {
    display: none;
}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    padding: 7px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.publication-item.hidden,
.year-divider.hidden {
    display: none;
}

/* ===== Stats ===== */
.stats-container {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    width: fit-content;
    overflow: hidden;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.8rem;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

/* ===== News ===== */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    gap: 1.6rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    flex: 0 0 96px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-color);
    text-align: right;
    letter-spacing: 0.02em;
}

.news-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ===== Recipe Cards ===== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recipe-card {
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.recipe-image {
    height: 150px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-image i {
    font-size: 3rem;
    color: var(--paper);
}

.recipe-content {
    padding: 1.4rem;
}

.recipe-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.recipe-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.recipe-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== Recipe Detail ===== */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recipe-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.recipe-detail-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.recipe-detail-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.recipe-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.recipe-detail-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    border-top: 2px solid var(--rule-strong);
    padding-top: 2rem;
    line-height: 1.8;
    font-size: 1.12rem;
}

.recipe-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.8rem 0 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.recipe-detail-content h2:first-child {
    margin-top: 0;
}

.recipe-detail-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.25rem 0 0.5rem;
}

.recipe-detail-content ul,
.recipe-detail-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-detail-content li {
    margin-bottom: 0.5rem;
}

.recipe-detail-content blockquote {
    background: var(--paper-2);
    border-left: 2px solid var(--primary-color);
    padding: 1rem 1.25rem;
    margin: 1.2rem 0;
    border-radius: 0;
    font-style: italic;
    font-size: 1.05rem;
}

.recipe-detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recipe-detail-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* ===== Entrance animation ===== */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-eyebrow,
.hero-text h1,
.hero-rule,
.affiliation,
.research-interests,
.contact-info,
.hero-image {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text h1 { animation-delay: 0.06s; }
.hero-rule { animation-delay: 0.12s; }
.affiliation { animation-delay: 0.18s; }
.research-interests { animation-delay: 0.24s; }
.contact-info { animation-delay: 0.30s; }
.hero-image { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        order: -1;
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background: var(--paper);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 24px 0;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 14px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .hero {
        padding-top: 108px;
    }

    .contact-info {
        gap: 0.6rem 1.2rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .news-date {
        text-align: left;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 180px;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tools-list {
        flex-direction: column;
    }

    .tool-item {
        width: 100%;
    }

    .stats-container {
        width: 100%;
    }

    .stat-item {
        flex: 1;
        padding: 0.9rem 1rem;
    }
}
