@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap");
:root {
  color-scheme: light;
  --ink: #281740;
  --muted: #706080;
  --purple: #7041c8;
  --dark: #5123a3;
  --wash: #f2ecfc;
  --line: #e4dcee;
  --paper: #fff;
  --pink: #b52d65;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body:has(.event-content) {
  background: #f8f6fd;
}
::selection {
  background: #e3d4fa;
  color: var(--ink);
}
input, textarea {
  caret-color: var(--purple);
  scroll-margin-top: 100px;
}
html {
  scrollbar-color: #ac98ca #f8f6fd;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--dark);
  text-underline-offset: 4px;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid #a16cef;
  outline-offset: 4px;
}
input,
textarea,
select {
  max-width: 100%;
}
input,
textarea {
  border: 1px solid #9d89b3;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #796a88;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1.08rem;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #fff;
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 2rem;
  transform: skew(-7deg);
}
.brand-small {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-left: 1px solid #c9b8e2;
  padding-left: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 3px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--dark);
  background: #eee3ff;
  white-space: nowrap;
}
.badge-outline {
  border-radius: 0;
  border-left: 1px solid #c9b8e2;
  background: none;
  color: var(--muted);
  padding: 0 0 0 12px;
  font-weight: 500;
}
.header nav {
  display: flex;
  gap: 32px;
}
.header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}
.header nav a[aria-current] {
  border-color: var(--purple);
}
.menu {
  display: none;
  background: none;
  border: 0;
  color: var(--dark);
  padding: 8px;
}
.wrap {
  width: min(1124px, calc(100% - 56px));
  margin: auto;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #f4f0ff, #e9e1fa 76%, #f3effc);
  isolation: isolate;
}
.hero-mark {
  position: absolute;
  font: 800 430px/0.9 "Barlow Condensed", sans-serif;
  letter-spacing: -0.035em;
  transform: skew(-13deg);
  color: #bda2ed;
  opacity: 0.28;
  right: 3%;
  top: 8px;
  z-index: -1;
  user-select: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 80px;
  background: white;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: -1;
}
.hero-inner {
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 36px 48px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 65%;
}
.hero h1 {
  font-size: clamp(3.6rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.hero-subtitle {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-invitation {
  color: var(--dark);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-follow {
  justify-content: space-between;
  gap: 24px;
}
.hero-follow small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.015em;
}
.home-content {
  padding-top: 36px;
}
.profile-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.profile-section h2 {
  font-size: 2.15rem;
  margin-bottom: 24px;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 64px;
}
.profile-facts {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.profile-facts div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}
.profile-facts dt {
  color: var(--muted);
  font-size: 0.875rem;
  padding-top: 2px;
}
.profile-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.profile-story p {
  max-width: 65ch;
  line-height: 1.9;
  margin-bottom: 16px;
  color: var(--muted);
}
.profile-story .profile-lead {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.8;
}
.profile-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.profile-ig:hover { text-decoration: underline; }
.profile-ig svg { width: 18px; height: 18px; }
.profile-sources {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}
.profile-sources summary {
  cursor: pointer;
  display: list-item;
  min-height: 44px;
  padding-block: 10px;
  width: fit-content;
}
.profile-sources ul { margin: 0 0 12px; padding-left: 20px; }
.profile-sources a { display: inline-block; padding-block: 8px; }
.profile-sources p { margin-bottom: 0; }
.portrait {
  position: absolute;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  right: -12px;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 9px;
  background: var(--purple);
  border: 1px solid transparent;
  color: white;
  padding: 12px 26px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  transition: background 150ms ease-out;
}
.btn:hover {
  background: var(--dark);
}
.btn-wide {
  width: 100%;
}
.secondary {
  background: #fff;
  color: var(--dark);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--wash);
}
.text-btn {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--dark);
  font-weight: 600;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.text-btn:hover {
  text-decoration: underline;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.schedule {
  scroll-margin-top: 24px;
  padding-top: 32px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.section-top h2 {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 900;
}
.section-top select {
  border: 1px solid #9d89b3;
  border-radius: 8px;
  background: white;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.notice {
  background: #f8f5ff;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 14px;
  margin-bottom: 16px;
}
#event-list {
  border-top: 1px solid var(--line);
}
.event-row {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 116px 24px;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease-out;
}
.event-row:hover {
  background: #f8f5fd;
}
.event-row.is-today {
  background: #f0e9fc;
}
.event-row.is-today:hover {
  background: #e9ddfa;
}
.event-date {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 12px;
}
.event-row time,
.event-summary time {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.025em;
}
.weekday {
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}
.event-row .row-text {
  display: contents;
}
.event-row strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.event-row .badge {
  justify-self: start;
  color: var(--muted);
  background: #f2eff7;
  padding: 2px 14px;
}
.birthday .event-date {
  color: var(--pink);
}
.birthday .weekday {
  color: inherit;
}
.event-row.birthday:not(.is-past) .badge {
  color: var(--pink);
  background: #fce6ef;
}
.is-today:not(.birthday) .event-date,
.is-today:not(.birthday) .weekday {
  color: var(--purple);
}
.event-row.is-today:not(.birthday) .badge {
  color: var(--dark);
  background: #e9defb;
}
.chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.archive-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
}
.archive-link:hover {
  text-decoration: underline;
}
.schedule-note {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 4px 0 0;
}
.archive-year {
  margin-bottom: 32px;
}
.archive-year .year-label {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 0;
}
.content {
  padding-top: 26px;
  padding-bottom: 24px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  margin-bottom: 18px;
  font-weight: 600;
}
.event-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 176px;
  margin-bottom: 28px;
  padding-block: 8px 24px;
}
.event-summary::before {
  content: "1111";
  position: absolute;
  right: 16px;
  top: 0;
  z-index: -1;
  color: #bda2ed;
  opacity: 0.18;
  font: 800 210px/0.9 "Barlow Condensed", sans-serif;
  letter-spacing: -0.035em;
  transform: skew(-13deg);
}
.event-summary time {
  font-size: 5.6rem;
  flex: none;
}
.event-details {
  min-width: 0;
}
.event-summary h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin: 2px 0 8px;
  text-wrap: balance;
}
.event-meta {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.event-summary .event-note {
  color: var(--muted);
  margin-bottom: 0;
}
.official-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.official-link svg {
  width: 18px;
  height: 18px;
}
.official-link:hover {
  text-decoration: underline;
}
.event-content {
  max-width: 900px;
}
.composer {
  position: static;
}
.composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.composer-heading h2 {
  margin: 0;
}
.composer-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--dark);
}
.composer-close:hover {
  background: var(--line);
}
html:has(#submission-dialog[open]) {
  overflow: hidden;
}
.submission-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.submission-dialog .composer {
  border: 0;
  margin: 0;
  border-radius: 0;
  padding: 0;
}
.submission-dialog .composer-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  padding: 20px 24px 16px;
  margin: 0;
}
.submission-dialog .composer-heading h2 {
  font-size: 1.8rem;
}
.submission-dialog form {
  padding: 8px 24px 24px;
}
.submission-dialog .mine {
  margin: 0 24px 24px;
  border-top: 1px solid var(--line);
}
.submission-dialog .btn {
  margin-top: 0;
}
.submission-dialog .status.success {
  color: #245f3a;
}
.composer label.field {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.composer textarea {
  min-height: 130px;
}
.attach-control {
  color: var(--dark);
  margin: 8px 0 12px;
  border: 1px dashed #9d89b3;
  border-radius: 8px;
  background: #f8f5fd;
  font-weight: 700;
}
.attach-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  cursor: pointer;
}
.attach-control:has(input:disabled) {
  opacity: 0.6;
}
.attach-control:has(input:disabled) label {
  cursor: wait;
}
.attach-control:hover {
  background: var(--wash);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hint {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0 14px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  min-height: 44px;
  margin: 20px 0 16px;
}
.consent input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 4px 0 0;
  accent-color: var(--purple);
}
.status {
  font-size: 0.88rem;
  color: var(--dark);
  margin: 12px 0 0;
  white-space: pre-line;
}
.status:empty {
  display: none;
}
.status.error {
  color: #a51e47;
}
.status.success {
  background: #f1f9f3;
  border-radius: 8px;
  padding: 12px;
  color: #245f3a;
}
.muted {
  color: var(--muted);
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--muted);
  gap: 10px;
}
.empty svg {
  width: 36px;
  height: 36px;
  color: #8d68bd;
}
.empty p {
  margin: 0;
}
.wall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.wall-top h2 {
  margin: 0;
}
.wall-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.wall-main {
  width: 100%;
}
.post {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}
.post header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--wash);
  display: grid;
  place-items: center;
  color: var(--dark);
  font-weight: 700;
}
.post header > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.post .posted {
  color: var(--muted);
  font-size: 0.78rem;
}
.post p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-bottom: 14px;
}
.post-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.post-media:has(> :only-child) {
  grid-template-columns: 1fr;
}
.post-media img,
.post-media video {
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f6fc;
}
.post-media figure {
  margin: 0;
}
.post-media figcaption {
  font-size: 0.8rem;
  color: var(--muted);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}
.social-links a:hover {
  text-decoration: underline;
}
.social-links svg {
  width: 18px;
  height: 18px;
}
.uploads {
  display: grid;
  gap: 8px;
}
.upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  font-size: 0.82rem;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}
.upload img,
.upload video {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 5px;
}
.upload-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.upload progress {
  width: 100%;
  height: 7px;
  accent-color: var(--purple);
}
.remove {
  border: 0;
  background: var(--wash);
  border-radius: 50%;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  display: flex;
}
.mine {
  margin-top: 20px;
}
.mine summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  padding: 12px 0;
}
.mine .post {
  padding: 15px;
  font-size: 0.9rem;
}
.mine-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mine-status {
  font-size: 0.8rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.prose {
  max-width: 760px;
  margin: auto;
}
.prose h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.prose h2 {
  font-size: 1.1rem;
  margin-top: 28px;
}
.prose p,
.prose li {
  color: #5e506f;
}
.footer {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-brand {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}
.footer a {
  color: inherit;
}
.footer .footer-ig {
  color: var(--dark);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.footer-ig svg { width: 16px; height: 16px; }
.credit {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  margin: 10px 0 24px;
}
.year-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.1rem;
  margin-bottom: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #1d12346b;
}
dialog .close-dialog {
  float: right;
}
#share-dialog h2 {
  font-size: 1.4rem;
}
#share-dialog .btn {
  margin-top: 12px;
  width: 100%;
}
#share-dialog p {
  color: var(--muted);
  font-size: 0.9rem;
}
#wall-loading {
  color: var(--muted);
}
@media (max-width: 900px) {
  .header-inner { padding-inline: 24px; }
  .header nav { gap: 20px; font-size: 0.9rem; }
  .wrap { width: calc(100% - 48px); }
  .hero h1 { font-size: 4.5rem; }
  .hero-inner { min-height: 340px; }
  .profile-layout { gap: 32px; }
  .event-row { grid-template-columns: 150px minmax(0, 1fr) 106px 20px; gap: 16px; padding-inline: 16px; }
  .event-date { grid-template-columns: 82px 1fr; gap: 4px; }
  .event-row time { font-size: 2.3rem; }
  .event-row strong { font-size: 1rem; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 64px; padding: 8px 16px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.75rem; }
  .brand-small { font-size: 0.7rem; padding-left: 10px; }
  .badge-outline { font-size: 0.65rem; padding-left: 10px; }
  .menu { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; background: white; border-bottom: 1px solid var(--line); padding: 8px 20px; gap: 24px; flex-wrap: wrap; }
  .header nav.open { display: flex; }
  .wrap { width: calc(100% - 40px); }
  .hero-inner { min-height: 370px; align-items: flex-start; padding-top: 72px; }
  .hero h1 { font-size: clamp(3rem, 11.8vw, 4.4rem); margin-bottom: 18px; white-space: nowrap; }
  .hero-copy { width: 76%; }
  .hero-subtitle { font-size: 1.12rem; margin-top: 8px; }
  .hero-invitation { max-width: 170px; font-size: 0.9rem; margin-bottom: 14px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .hero-follow { min-height: 62px; padding: 10px 14px; }
  .home-content { padding-top: 28px; }
  .profile-section { padding-bottom: 24px; }
  .profile-section h2 { font-size: 1.75rem; margin-bottom: 20px; }
  .profile-layout { grid-template-columns: 1fr; gap: 24px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .profile-facts div { grid-template-columns: 1fr; align-content: start; gap: 4px; }
  .profile-story .profile-lead { font-size: 1.05rem; }
  .profile-story p { line-height: 1.85; }
  .profile-sources { margin-top: 12px; }
  .portrait { width: auto; height: 340px; right: -74px; }
  .hero-mark { font-size: clamp(13rem, 66vw, 21rem); right: 8vw; top: 8px; }
  .hero .btn { min-height: 46px; font-size: 0.94rem; padding: 10px 16px; gap: 8px; }
  .hero::after { height: 50px; }
  .schedule { padding-top: 22px; }
  .section-top { gap: 12px; margin-bottom: 14px; }
  .section-top h2 { font-size: 1.75rem; }
  .section-top select { font-size: 0.8rem; padding-inline: 10px; }
  .event-row { grid-template-columns: 86px minmax(0, 1fr) 76px 16px; gap: 8px; min-height: 78px; padding: 10px 6px; }
  .event-date { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .event-row time { font-size: 2.3rem; }
  .weekday { font-size: 0.8rem; }
  .event-row strong { font-size: 1rem; }
  .event-row .badge { font-size: 0.75rem; padding: 2px 9px; justify-self: end; }
  .chevron svg { width: 18px; height: 18px; }
  .schedule-note { font-size: 0.75rem; }
  .content { padding-top: 20px; }
  .back { min-height: 44px; font-size: 0.9rem; margin-bottom: 6px; }
  .event-summary { min-height: 170px; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 16px; margin-bottom: 24px; }
  .event-summary time { font-size: 4rem; }
  .event-details { flex: 1; min-width: 190px; }
  .event-summary h1 { font-size: 1.35rem; }
  .event-meta { font-size: 0.875rem; }
  .event-summary::before { font-size: 180px; right: 10px; }
  .official-link { font-size: 0.9rem; }
  .wall-top { align-items: center; gap: 10px; margin-bottom: 16px; }
  .wall-top h2 { font-size: 1.5rem; }
  .wall-actions { gap: 14px; flex-wrap: wrap; }
  .wall-actions .btn { padding: 10px 18px; }
  .wall-actions .share { font-size: 0.875rem; }
  .wall-actions .share svg { width: 18px; height: 18px; }
  .post { padding: 16px; }
  .post-media { grid-template-columns: 1fr; }
  .empty { min-height: 220px; }
  .panel { padding: 20px; }
  .submission-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .submission-dialog .composer-heading { padding: 16px 18px; }
  .submission-dialog .composer-heading h2 { font-size: 1.5rem; }
  .submission-dialog form { padding: 4px 18px 20px; }
  .submission-dialog .mine { margin: 0 18px calc(20px + env(safe-area-inset-bottom)); }
  .composer textarea { min-height: 112px; }
  .composer .links-input { min-height: 80px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.75rem; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .prose h1 { font-size: 1.7rem; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 4px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-small, .badge-outline { padding-left: 8px; }
  .brand-small { font-size: 0.62rem; }
  .badge-outline { font-size: 0.6rem; }
  .hero-inner { min-height: 350px; padding-top: 62px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-copy { width: 83%; }
  .portrait { height: 300px; right: -82px; }
  .hero .btn { font-size: 0.9rem; padding-inline: 12px; }
  .event-row { grid-template-columns: 86px minmax(0, 1fr) 16px; gap: 12px; }
  .event-row .row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-top h2 { font-size: 1.5rem; }
  .wall-top h2 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.links-input {
  min-height: 72px !important;
}
.prose .composer {
  position: static;
}
.saved-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.post-media .play-error {
  font-size: 0.8rem;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.attach-control:focus-within {
  outline: 3px solid #a16cef;
  outline-offset: 4px;
  border-radius: 5px;
}
.year-label:not(:first-child) {
  margin-top: 24px;
}
