:root {
    --ink: #242622;
    --muted: #62655f;
    --accent: #bd4a2c;
    --line: #dedfd9;
    --paper: #fff;
    --soft: #f4f4ef;
    --green: #344e42
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 17px;
    line-height: 1.85
}

a {
    color: inherit;
    text-underline-offset: 5px
}

a:hover {
    color: var(--accent)
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px
}

img {
    max-width: 100%;
    display: block
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    line-height: 1.35
}

h2 {
    font-size: 2em;
    font-weight: 700
}

h3 {
    font-size: 1.28em
}

p {
    margin-bottom: 1.2em
}

.wrap {
    width: min(1160px, calc(100% - 96px));
    margin: auto
}

.small {
    font-size: .875em;
    color: var(--muted)
}

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 99;
    background: white;
    padding: 10px
}

.skip:focus {
    top: 10px
}

.site-header {
    background: white
}

.header-inner {
    max-width: 1400px;
    margin: auto;
    min-height: 135px;
    padding: 22px 48px;
    display: flex;
    align-items: center;
    gap: 30px
}

.brand {
    display: block;
    flex-shrink: 0
}

.brand img {
    width: 292px;
    height: auto
}

.site-label {
    font-size: .8em;
    line-height: 1.7;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 24px
}

.site-label b {
    font-weight: 400
}

.header-inner nav {
    margin-left: auto;
    display: flex;
    gap: 28px;
    font-size: .92em;
    white-space: nowrap
}

.header-inner nav a {
    text-decoration: none
}

.header-inner nav [aria-current] {
    color: var(--accent)
}

.hero {
    position: relative;
    isolation: isolate;
    color: white;
    min-height: 430px;
    display: flex;
    align-items: center
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .64), rgba(0, 0, 0, .15));
    z-index: -1
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2
}

.hero h1 {
    color: white;
    font-size: clamp(2.7em, 5vw, 4.6em);
    letter-spacing: .025em;
    margin: 0 0 16px
}

.hero p {
    margin-bottom: 10px
}

.hero-copy {
    padding-top: 65px;
    padding-bottom: 65px
}

.hero .eyebrow {
    color: white
}

.hero-copy>p:last-child {
    font-size: 1.25em
}

.eyebrow {
    font-size: .8em;
    letter-spacing: .12em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px
}

.breadcrumb {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .85em;
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--muted)
}

.breadcrumb a {
    text-decoration: none
}

.programs {
    padding-top: 55px;
    padding-bottom: 65px
}

.section-heading {
    display: flex;
    gap: 20px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px
}

.section-heading p {
    font-size: .95em;
    color: var(--muted)
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px
}

.program-card {
    border-bottom: 1px solid var(--line)
}

.card-image {
    display: block;
    overflow: hidden
}

.card-image img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    transition: transform .3s
}

.card-image:hover img {
    transform: scale(1.025)
}

.card-body {
    padding: 26px 0 30px
}

.card-body h3 {
    font-size: 1.8em;
    margin-bottom: 6px
}

.card-body h3 a {
    text-decoration: none
}

.english {
    font-family: Georgia, serif;
    color: var(--muted);
    font-size: 1.25em
}

.tags {
    font-size: .88em;
    color: var(--green);
    margin: 24px 0
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding: 6px 0
}
.text-link:hover{
    text-decoration: none;
}
.overview-note {
    border-left: 4px solid var(--accent);
    padding: 26px 32px;
    background: var(--soft);
    margin-bottom: 75px
}

.overview-note h2 {
    font-size: 1.25em
}

.overview-note p:last-child {
    margin-bottom: 0
}

.site-footer {
    background: #252722;
    color: #fff;
    padding: 65px 0 24px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px
}

.footer-logo {
    width: 245px;
    margin-bottom: 24px
}

.slowfood {
    width: 100px;
    margin-top: 10px
}

.site-footer h2 {
    font-size: 1em;
    margin-bottom: 24px
}

.site-footer p,
.site-footer a {
    font-size: .9em
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none
}

.site-footer .small,
.footnote {
    color: #c3c6be
}

.footnote {
    font-size: .8em;
    border-top: 1px solid #55584e;
    margin-top: 45px;
    padding-top: 24px
}

.course-hero {
    min-height: 455px
}

.course-hero h1 {
    font-size: clamp(2.6em, 4.2vw, 3.8em);
    color: white;
}

.course-hero .english {
    color: white;
    font-size: 1.65em
}

.section-nav {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 8px #00000004
}

.section-nav .wrap {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 17px;
    padding-bottom: 17px
}

.section-nav a {
    text-decoration: none;
    font-size: .95em
}

.section-nav a.active {
    color: var(--accent);
    text-decoration: underline
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 60px;
    padding-top: 35px;
    padding-bottom: 70px
}

.course-content section {
    padding: 35px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 55px
}

.course-content h2 {
    margin-bottom: 24px
}

.lead {
    font-size: 1.25em;
    line-height: 1.85
}

.fact-panel {
    background: var(--soft);
    padding: 25px;
    align-self: start;
    margin-top: 35px
}

.fact-panel h2 {
    font-size: 1em;
    color: var(--accent)
}

dl {
    margin: 0
}

dt {
    font-size: .85em;
    color: var(--muted)
}

dd {
    font-size: 1.2em;
    margin: 0 0 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    font-weight: 700
}

.button {
    display: block;
    text-align: center;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-size: .95em;
    font-weight: 700;
    margin-top: 12px
}

.button:hover {
    background: #92391f;
    color: #fff
}

.button.outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent)
}

.notice {
    background: #f8f0e8;
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    font-size: .95em;
    margin: 25px 0
}

.notice p:last-child {
    margin-bottom: 0
}

.partners {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 25px 0
}

.partners img {
    width: 200px;
    max-height: 90px;
    object-fit: contain
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0
}

.timeline>div {
    border-top: 3px solid var(--accent);
    padding-top: 18px
}

.timeline strong {
    display: block;
    margin-bottom: 8px
}

.timeline p {
    font-size: .95em
}

.source {
    font-size: .8em;
    color: var(--muted);
    margin-top: 22px
}

.source a {
    display: inline
}

.table-wrap {
    overflow: auto;
    margin: 22px 0
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95em
}

th {
    text-align: left;
    background: var(--soft)
}

td,
th {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

td:last-child.credit {
    width: 75px;
    text-align: center
}

.course-name small {
    display: block;
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: .875em
}

.year-title {
    font-size: 1.4em;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-top: 35px
}

.curriculum details {
    border-bottom: 1px solid var(--line);
    padding: 15px 0
}

.curriculum summary {
    cursor: pointer;
    font-weight: 700
}

.curriculum details p {
    padding: 16px 0 0 22px;
    margin: 0;
    color: var(--muted);
    font-size: .95em
}

.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px
}

.learning-card img {
    aspect-ratio: 1.95;
    object-fit: cover;
    width: 100%
}

.learning-card h3 {
    margin: 14px 0 8px
}

.learning-card p {
    font-size: .9em;
    color: var(--muted)
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.faculty img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover
}

.faculty h3 {
    font-size: 1em;
    margin: 10px 0 5px
}

.faculty p {
    font-size: .8em;
    color: var(--muted)
}

.resource-list {
    list-style: none;
    padding: 0
}

.resource-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.resource-list a {
    text-decoration: none;
    color: var(--accent)
}

.next-course {
    margin-top: 40px;
    padding: 28px;
    background: var(--soft)
}

.next-course a {
    font-size: 1.35em
}

.backtop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: var(--ink);
    color: white;
    padding: 8px 13px;
    text-decoration: none;
    font-size: .9em
}

.site-footer a:hover {
    color: #efaa8b
}

@media(max-width:1000px) {
    .site-label {
        display: none
    }

    .header-inner {
        min-height: 110px
    }

    .brand img {
        width: 240px
    }

    .course-layout {
        gap: 35px;
        grid-template-columns: minmax(0, 1fr) 240px
    }

    .wrap {
        width: calc(100% - 60px)
    }

    .header-inner nav {
        gap: 18px
    }

    .section-heading {
        display: block
    }

    .footer-grid {
        gap: 28px
    }

    .faculty-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:720px) {
    body {
        font-size: 16px
    }

    .wrap {
        width: calc(100% - 36px)
    }

    .header-inner {
        padding: 16px 18px;
        flex-wrap: wrap;
        gap: 16px
    }

    .brand img {
        width: 205px
    }

    .header-inner nav {
        width: 100%;
        margin: 0;
        justify-content: space-between;
        border-top: 1px solid var(--line);
        padding-top: 10px;
        font-size: .875em
    }

    .hero {
        min-height: 330px
    }

    .hero h1 {
        font-size: 2.4em
    }

    .hero-copy {
        padding-top: 45px;
        padding-bottom: 45px
    }

    .hero-copy>p:last-child {
        font-size: 1em
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .programs {
        padding-top: 30px
    }

    .section-heading h2 {
        font-size: 1.65em
    }

    .card-body h3 {
        font-size: 1.5em
    }

    .overview-note {
        padding: 22px
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .site-footer {
        padding-top: 40px
    }

    .course-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 0
    }

    .fact-panel {
        order: -1;
        margin-top: 22px;
        padding: 20px
    }

    .fact-panel dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px
    }

    .fact-panel dl>div {
        min-width: 0
    }

    dd {
        font-size: 1.05em
    }

    .course-content section {
        padding-top: 30px
    }

    .course-content h2 {
        font-size: 1.65em
    }

    .section-nav .wrap {
        gap: 23px;
        width: 100%;
        padding: 14px 18px
    }

    .section-nav a {
        font-size: .875em
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .timeline>div {
        border-top: 0;
        border-left: 3px solid var(--accent);
        padding: 0 0 0 18px
    }

    .timeline p {
        margin: 0
    }

    .learning-grid {
        gap: 18px
    }

    .faculty-grid {
        gap: 18px
    }

    .course-hero .english {
        font-size: 1.2em
    }

    .breadcrumb {
        font-size: .8em
    }

    .lead {
        font-size: 1.12em
    }

    .table-wrap {
        font-size: .9em
    }

    td,
    th {
        padding: 10px
    }

    .partners img {
        width: 150px
    }

    .backtop {
        font-size: .8em;
        padding: 6px 10px
    }

    h2 {
        font-size: 1.7em
    }
}

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

    .card-image img {
        transition: none
    }
}

@media print {

    .site-header,
    .section-nav,
    .site-footer,
    .backtop {
        display: none
    }

    .course-layout {
        display: block
    }

    .hero {
        min-height: 220px
    }

    .fact-panel {
        break-inside: avoid
    }

    .wrap {
        width: 100%
    }

    .course-content section {
        break-inside: auto
    }

    a {
        color: #222
    }

    .learning-card,
    .faculty {
        break-inside: avoid
    }
}

@media(max-width:720px) {
    .fact-panel {
        align-self: stretch;
        width: 100%
    }

    .course-name small {
        overflow-wrap: anywhere
    }

    .site-label {
        display: block;
        border: 0;
        padding: 0;
        font-size: .75em
    }

    .site-label b {
        display: none
    }
}