@-ms-viewport{
    width: device-width;
}

:root {
    --bg: #ffffff;
    --ink: #2b2b2b;
    --muted: #5f5a55;
    --accent: #7a4a2b;
    --accent-2: #4f2f1f;
    --card: transparent;
    --shadow: none;
    --radius: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 400;
    line-height: 1.55rem;
    font-size: 0.9rem;
}

div#content {
    max-width: 900px;
    margin: 28px auto 64px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 22px 20px;
    box-shadow: none;
    animation: page-in 0.4s ease both;
}

.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.site-nav a {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

.site-nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 22px;
    align-items: center;
    margin: 6px 0 18px;
}

.hero-text {
    padding: 12px 8px;
}

.hero-eyebrow {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 8px;
}

.hero-title {
    font-size: 2.05rem;
    line-height: 1.12;
    margin: 0 0 8px;
    color: var(--ink);
    font-family: inherit;
    font-weight: 600;
}

.hero-contact {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.hero-contact + .hero-contact {
    margin-top: 6px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

img#profile-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

div.personal-statement {
    margin: 0px 10px;
    font-weight: 300;
    font-size: 12px;
}

table#personal-statement-table {
    margin-top: 15px;
}

h1, h3 {
    margin: 10px;
}

span.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

td.image-td {
    width: 20%;
    text-align: center;
}

td.description-td {
    width: 100%;
    background: white !important;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

img.project-img {
    max-width: 250px;
    max-height: 150px;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

div.container {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 14px 0;
    box-shadow: none;
    margin: 18px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: rise-in 0.4s ease both;
}

.news-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

.news-scroll ul {
    margin-top: 6px;
}

.news-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.news-scroll::-webkit-scrollbar-track {
    background: transparent;
}

a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
}

a:hover {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.link-button:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

h2 {
    color: var(--ink);
    margin: 0 0 12px;
    font-size: 1.12rem;
    font-family: inherit;
    font-weight: 600;
}

h2::after {
    content: none;
}

#teaching-table h2,
#blog-table h2 {
    font-size: 1.08rem;
    margin: 0 0 6px;
    font-weight: 600;
    font-family: inherit;
}

#teaching-table {
    width: 96%;
    margin-left: auto;
}

#teaching-table td.description-td,
#blog td.description-td {
    padding: 8px 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#blog table,
#blog tr,
#blog td {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#teaching-table p,
#blog-table p {
    margin: 6px 0;
}

#projects-table h3,
#projects-table h2 {
    font-size: 1.08rem;
    margin: 0 0 6px;
    font-weight: 600;
    font-family: inherit;
}

#projects-table p {
    font-size: 0.95rem;
    margin: 6px 0;
}

ul {
    padding-left: 20px;
    margin: 10px 0 0;
}

li {
    margin: 8px 0;
}

td#personal-statement-td {
    width: 70%;
}

hr {
    height: 1px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin: 18px 0 0;
}

p#copyright {
    text-align: center;
    font-size: 12px;
}

body,
td,
th,
tr,
p {
    font-size: 0.95rem;
}

td, th {
    border: none;
}

@media only screen and (max-width: 900px) {
    div#content {
        margin: 20px auto 50px;
        padding: 0 18px 20px;
        border-radius: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }
}

@media only screen and (max-width: 600px) {
    div#content,
    div.container,
    table {
        width: 100%;
        margin: 0 auto;
        padding: 12px 0;
    }

    .site-nav {
        gap: 10px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    body, td, th, tr, p, a {
        font-size: 0.92rem;
    }

    td.image-td,
    td.description-td {
        width: auto;
        display: block;
    }
}

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

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.video-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.video-container {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.video-caption {
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .video-row {
        justify-content: center;
    }
    .video-container {
        flex: 0 0 calc(50% - 20px);
    }
}
