/*
Theme Name: LUNA University — Official Website
Description: A faithful WordPress version of the approved bilingual LUNA website, with native text editing and Google Calendar settings.
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
Author: LUNA
Text Domain: luna
*/
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/barlow-condensed-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-300-700.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('assets/fonts/caveat-400-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root { --paper: #f4f1e8; --ink: #1a2224; --action-hover: #343c3b; --science: #3f5b70; --science-action: #2053bb; --science-hover: #163f96; --science-paper: #e0e8ef; --science-muted: #465763; --engineering: #48634b; --engineering-paper: #e3e7d0; --engineering-muted: #4a574b; --education: #7a504b; --education-paper: #f2d5cc; --education-muted: #65504b; --night: #1a2224; --white: #fffdf5; --soft: #e9e6dd; --line: #9ca7a5; --muted: #4f5553; --on-night: #f4f1e8; --display: 'Barlow Condensed', sans-serif; --body: 'DM Sans', sans-serif; --hand: 'Caveat', cursive; --print-shadow: 0 10px 25px rgb(0 0 0 / .09); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--body); }
::selection { background: var(--ink); color: var(--white); }
a { color: inherit; text-underline-offset: .25em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
figure, h1, h2, h3, p { margin: 0; }
p + p { margin-top: 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 96px; }
h2 { font-size: 46px; margin-bottom: 24px; }
h3 { font-size: 30px; margin-bottom: 20px; }
figcaption { font-size: 12px; line-height: 1.6; padding-top: 12px; color: var(--muted); }
.wrap { width: min(calc(100% - 96px), 1248px); margin-inline: auto; }
.section { padding-block: 72px; }
.arrow { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex: 0 0 auto; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 12px; padding: 12px 20px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.header-reveal .site-header { position: fixed; inset: 0 0 auto; z-index: 10; background: var(--paper); transform: translateY(-100%); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.header-reveal .site-header.is-visible, .header-reveal .site-header:focus-within { transform: translateY(0); }
html.header-reveal { scroll-padding-top: calc(var(--header-height, 110px) + 24px); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 110px; padding-block: 14px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 156px; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand > span { width: 150px; font-size: 12px; line-height: 1.45; }
.brand strong { font-weight: 400; }
.university-brand { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.header-inner > .university-brand { order: 3; }
.university-brand img { width: 170px; height: auto; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-header nav a { min-height: 44px; display: flex; align-items: center; font-size: 14px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.language-switch { order: 4; display: flex; padding-left: 8px; border-left: 1px solid var(--line); }
.language-switch button { background: transparent; border: 0; min-width: 44px; min-height: 44px; color: var(--muted); font-size: 12px; }
.language-switch button[aria-pressed='true'] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.hero { position: relative; background: var(--night); color: var(--white); }
.cover-opening > img { width: 100%; height: auto; object-fit: contain; }
.cover-opening::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .54); pointer-events: none; }
.cover-inner { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; padding-block: 48px; }
.cover-opening .hero-copy { width: 50%; margin-left: auto; padding-left: 28px; }
.hero.cover-opening h1 span, .cover-opening .hero-note { color: var(--white); }
.cover-opening .hero-lead { max-width: 440px; }
.cover-opening a:focus-visible { outline-color: var(--white); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: 96px; line-height: .99; letter-spacing: -.025em; }
.hero h1 span { font-family: var(--hand); font-size: 95px; line-height: 1.2; color: var(--science-action); }
.hero-lead { max-width: 415px; font-size: 18px; line-height: 1.7; margin-top: 24px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 20px; min-height: 52px; font-size: 15px; font-weight: 600; text-decoration: none; }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--action-hover); }
.button-science { background: var(--science-action); }
.button-science:hover { background: var(--science-hover); }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 26px; }
.photo-collage { position: relative; height: 615px; min-width: 0; }
.print { position: absolute; background: var(--white); padding: 10px 10px 0; box-shadow: var(--print-shadow); }
.print::before { content: ''; position: absolute; width: 80px; height: 22px; left: calc(50% - 40px); top: -11px; background: rgb(215 213 203 / .8); transform: rotate(-8deg); }
.print figcaption { font: 22px/1.25 var(--hand); color: var(--ink); padding: 6px 0 10px; }
.print-observe { left: 0; top: 105px; width: 55%; transform: rotate(-6deg); z-index: 2; }
.print-observe img { height: 265px; object-position: 35% center; }
.print-campus { top: 20px; right: 5px; width: 59%; transform: rotate(5deg); z-index: 1; }
.print-campus img { height: 235px; object-position: 42% center; }
.print-together { right: 8px; bottom: 55px; width: 43%; transform: rotate(7deg); z-index: 3; }
.print-together img { height: 230px; object-position: 35% center; }
.paper-note { position: absolute; left: 8px; bottom: 45px; background: var(--white); box-shadow: var(--print-shadow); padding: 20px; z-index: 4; font: 26px/1.08 var(--hand); transform: rotate(-4deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.activities-section { padding-top: 35px; }
.activity-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.activity-tile { border: 0; background: var(--category-paper); min-width: 0; }
[data-category="science"] { --category-ink: var(--science); --category-paper: var(--science-paper); --category-muted: var(--science-muted); }
[data-category="engineering"] { --category-ink: var(--engineering); --category-paper: var(--engineering-paper); --category-muted: var(--engineering-muted); }
[data-category="education"] { --category-ink: var(--education); --category-paper: var(--education-paper); --category-muted: var(--education-muted); }
.activity-tile > summary { cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; grid-template-rows: auto 1fr auto; align-content: start; column-gap: 18px; row-gap: 9px; min-height: 150px; padding: 26px; list-style: none; }
.activity-tile > summary::-webkit-details-marker { display: none; }
.activity-tile > summary:hover { box-shadow: inset 0 0 0 1px var(--line); }
.activity-tile > summary:focus-visible { outline-color: var(--category-ink); outline-offset: -4px; }
.activity-icon { grid-column: 1; grid-row: 1 / 4; width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.activity-title { grid-column: 2; color: var(--ink); font: 700 30px/1.12 var(--display); }
.activity-teaser { grid-column: 2; font-size: 13px; line-height: 1.6; color: var(--category-muted); }
.activity-category { grid-column: 2; font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--category-ink); margin-top: 8px; }
.activity-toggle { grid-column: 3; grid-row: 1; }
.activity-toggle > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.activity-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.65; }
.activity-tile[open] .activity-toggle svg path:first-child { display: none; }
.activity-detail { padding: 24px; border-top: 1px solid var(--line); }
.activity-detail p { font-size: 15px; color: var(--category-muted); }
.activity-detail h3 { margin: 24px 0 16px; color: var(--ink); }
.activity-detail .text-link { color: var(--category-ink); display: flex; justify-content: space-between; margin-top: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.lab-example { margin-block: 24px; }
.lab-example figure { margin: 0; }
.lab-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; font-size: 12px; font-weight: 600; text-align: center; }
.lab-example video, .lab-animation { width: 100%; height: auto; display: block; background: var(--ink); }
.events-section { border-top: 1px solid var(--line); }
.events-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.calendar-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.calendar-toolbar h3 { margin: 0; }
.calendar-controls { display: flex; gap: 4px; }
.calendar-controls button, .month-reset { min-height: 44px; min-width: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 10px; }
.calendar-controls button { display: inline-flex; align-items: center; justify-content: center; }
.calendar-controls button:hover, .month-reset:hover { background: var(--soft); }
.calendar-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calendar-table th { font-size: 12px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calendar-table abbr { text-decoration: none; }
.calendar-table td { text-align: center; height: 51px; padding: 2px 0; }
.calendar-table td span, .calendar-table td button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 14px; }
.calendar-table .is-today { outline: 1px solid var(--ink); outline-offset: -1px; }
.calendar-table td button { color: var(--white); background: var(--ink); border: 0; }
.calendar-table button:hover, .calendar-table button[aria-pressed='true'] { background: var(--action-hover); text-decoration: underline; }
.calendar-timezone { color: var(--muted); font-size: 12px; margin-top: 16px; }
.event-agenda { background: var(--soft); padding: 24px 28px; }
.event-agenda h3 { margin-bottom: 24px; }
.event-agenda p { font-size: 15px; }
.event-agenda .empty-title { font-weight: 600; }
.event-agenda .text-link { margin-top: 24px; }
.month-reset { display: block; margin-top: 16px; }
.event-item { padding-block: 20px; border-bottom: 1px solid var(--line); }
.event-item time { font-size: 13px; color: var(--muted); }
.event-item h4 { font-size: 20px; line-height: 1.3; margin: 10px 0; }
.intro-section { background: var(--science-paper); }
.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-copy h2 { margin-bottom: 24px; }
.intro-copy p { max-width: 65ch; color: var(--science-muted); }
.intro-photo { padding: 14px; background: var(--white); box-shadow: var(--print-shadow); transform: rotate(-1deg); }
.intro-photo img { aspect-ratio: 1.5; object-position: center; }
.intro-photo figcaption > span { display: block; font: 22px/1.3 var(--hand); color: var(--ink); }
.photo-credit { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.body-large { font-size: 18px; }
.community-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 32px; align-items: center; }
.community-text .board-copy { margin-top: 44px; }
.community-copy p { max-width: 55ch; }
.community-copy p, .board-copy p { color: var(--muted); }
.board-copy { padding-top: 8px; }
.community-photos { display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; align-items: center; max-width: 950px; margin: 48px auto 0; }
.community-photos figure { min-width: 0; padding: 14px; background: var(--white); box-shadow: var(--print-shadow); transform: rotate(-1deg); }
.community-photos figure:nth-child(2) { transform: rotate(2deg); }
.community-photos figcaption { font: 22px/1.3 var(--hand); color: var(--ink); }
.equipment-grid figcaption { font: 25px/1.3 var(--hand); color: var(--ink); }
.board-copy .text-link { margin-top: 20px; }
.board-section { border-top: 1px solid var(--line); }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.person-card { min-width: 0; padding: 12px 12px 16px; background: var(--white); }
.board-portrait { aspect-ratio: 4 / 4.5; background: var(--soft); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.board-portrait svg { width: 80px; height: 94px; fill: none; stroke: #6c7b84; stroke-width: 2; }
.board-portrait span { font-size: 13px; color: var(--muted); }
.person-card h3 { font-size: 27px; margin: 16px 0 4px; }
.person-card p { font-size: 14px; color: var(--muted); }
.board-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-top: 32px; }
.board-footer p { max-width: 660px; font-size: 14px; color: var(--muted); }
.equipment-section { background: var(--soft); }
.equipment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.equipment-grid figure { padding: 14px; background: var(--white); transform: rotate(-1deg); box-shadow: var(--print-shadow); }
.equipment-grid img { aspect-ratio: 1.25; object-position: 55% center; }
.equipment-grid p { color: var(--muted); }
.equipment-list { margin: 30px 0 20px; }
.equipment-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.equipment-list dt { font-size: 18px; font-weight: 600; }
.equipment-list dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.contact-section { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: end; }
.contact-grid h2 { font-size: 56px; }
.contact-grid p { max-width: 570px; }
.contact-grid .button { margin-top: 24px; }
.email-address { min-height: 44px; display: table; padding-block: 10px; margin-top: 8px; font-size: 14px; }
.contact-details { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-details .text-link { margin-top: 20px; }
.instagram-handle { display: block; font-size: 12px; }
.location-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.location-copy p { max-width: 470px; color: var(--muted); }
address { font-style: normal; margin: 26px 0 18px; }
.location-map { width: 100%; height: 460px; border: 0; background: var(--soft); }
.campus-link { display: table; margin-top: 10px; }
.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; border-top: 1px solid var(--line); }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 22px 0; cursor: pointer; font-size: 17px; font-weight: 600; }
.faq-section summary::marker { color: var(--ink); }
.faq-section details p { padding: 0 12px 24px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 65px; padding-block: 50px; }
.footer-main p { font-size: 12px; color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer-university-brand { margin-top: 20px; }
.footer-links { display: flex; flex-direction: column; align-items: start; }
.footer-links a { min-height: 44px; display: flex; align-items: center; font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-address p:first-child { margin: 0; }
.footer-address a { min-height: 44px; display: inline-block; padding-block: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 22px; font-size: 12px; color: var(--muted); }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) { .hero-copy { animation: settle-in .65s cubic-bezier(.16,1,.3,1) both; } @keyframes settle-in { from { transform: translateY(12px); } to { transform: translateY(0); } } }
@media (max-width: 1200px) { .brand > span { display: none; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 16px; }
  .university-brand img { width: 128px; }
  .site-header nav { gap: 18px; }
  .hero h1, .hero h1 span { font-size: 78px; }
  .cover-opening .hero-copy { width: 55%; padding-left: 0; }
  .photo-collage { height: 550px; }
  .print-observe img { height: 225px; }
  .print-campus img { height: 200px; }
  .print-together img { height: 190px; }
  .intro-layout, .community-grid, .equipment-grid, .faq-section, .contact-grid, .location-section { gap: 48px; }
  .events-layout { gap: 48px; }
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity-tile > summary { padding: 22px; column-gap: 12px; }
}
@media (max-width: 900px) {
  .cover-inner { position: relative; padding-block: 32px 40px; }
  .cover-opening::after { display: none; }
  .cover-opening .hero-copy { width: 100%; margin: 0; }
  .cover-opening .hero-lead { max-width: 100%; }
 .site-header nav { order: 5; flex: 0 0 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); } .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 8px; } .header-inner > .university-brand { margin-left: auto; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 44px; }
  h2 { font-size: 39px; }
  .header-inner { padding-block: 12px 0; }
  .brand img { width: 116px; }
  .university-brand img { width: 126px; }
  .language-switch { border: 0; padding: 0; }
  .header-inner > .university-brand { order: 2; margin-left: auto; }
  .language-switch { order: 3; }
  .site-header nav { flex-wrap: wrap; justify-content: space-between; gap: 0 10px; }
  .site-header nav a { font-size: 12px; }
  .community-text .board-copy { margin-top: 28px; }
  .hero h1, .hero h1 span { font-size: 66px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 14px; margin-top: 24px; }
  .hero-note { margin-top: 24px; }
  .photo-collage { height: 425px; margin-top: 3px; }
  .print-observe { top: 78px; width: 59%; left: 6px; }
  .print-observe img { height: 180px; }
  .print-campus { top: 12px; right: 9px; width: 57%; }
  .print-campus img { height: 140px; }
  .print-together { bottom: 13px; right: 13px; width: 40%; }
  .print-together img { height: 140px; }
  .print figcaption { font-size: 17px; padding-bottom: 7px; }
  .paper-note { bottom: 14px; left: 7px; padding: 12px; font-size: 21px; }
  .activities-section { padding-top: 34px; }
  .activity-tiles { grid-template-columns: 1fr; }
  .activity-tile > summary { min-height: 126px; padding: 24px; column-gap: 16px; }
  .activity-title { font-size: 28px; }
  .intro-layout, .community-grid, .equipment-grid, .contact-grid, .location-section, .faq-section, .events-layout { grid-template-columns: 1fr; gap: 32px; }
  .intro-photo, .equipment-grid figure { transform: none; }
  .intro-copy { grid-row: 1; }
  .community-photos { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .community-photos figure { width: 90%; transform: none; }
  .community-photos figure:first-child { width: 75%; }
  .community-photos figure:nth-child(2) { transform: none; justify-self: end; }
  .equipment-grid figure { grid-row: 2; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .board-footer { display: block; }
  .board-footer a { margin-top: 16px; }
  .person-card h3 { font-size: 25px; }
  .board-portrait span { font-size: 12px; }
  .contact-grid h2 { font-size: 44px; }
  .location-map { height: 330px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 40px; }
  .footer-address { grid-column: 1 / -1; }
  .faq-section h2 { margin: 0; }
}
@media (max-width: 380px) { .hero h1, .hero h1 span { font-size: 61px; } .calendar-table td span, .calendar-table td button { width: 38px; } .calendar-toolbar h3 { font-size: 28px; } .brand img { width: 106px; } .header-inner > .university-brand img { width: 122px; } .header-inner > .language-switch { flex: 0 0 100%; justify-content: end; } .button { font-size: 14px; gap: 14px; } .person-card h3 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .header-reveal .site-header { transition: none; } }

html[lang="de"] .activity-title { hyphens: auto; overflow-wrap: anywhere; }

/* Connected calendar: preserve readable descriptions and separate the subscribe action. */
#calendar-subscribe { display: table; }
.event-item p { white-space: pre-line; overflow-wrap: anywhere; }
.event-item h4 { overflow-wrap: anywhere; }
.calendar-status + .month-reset { margin-block: 12px; }

/* WordPress toolbar adjustment applies only to logged-in visitors. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }
