/* Shared public theme. System fonts avoid external font loading and tiny text. */
:root {
  --paper: #f5f1e9;
  --ink: #263a32;
  --muted: #526057;
  --line: #c9cec3;
  --pink: #eac2bb;
  --accent: #a0443e;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 1rem; line-height: 1.8; }
body::before { display: none; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.shell { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.page-shell { width: min(88%, 1120px); margin-inline: auto; padding-block: 0 3rem; }
main, section, article, .work-card-body, .hero > *, .about > * { min-width: 0; }
p, dd, h1, h2, h3 { overflow-wrap: anywhere; }
p { margin-block: .75rem; }
.top, .topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.top, .site-header { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { font: italic 1.5rem/1.4 Georgia, "Times New Roman", serif; text-decoration: none; }
.nav, .topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a, .topbar-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; font-size: 1rem; text-decoration: none; }
.nav a:hover, .topbar-links a:hover, [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.nav [aria-current="page"], .topbar-links [aria-current="page"] { color: var(--ink); background: transparent; }
.hero { padding-block: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.eyebrow, .card-label { font: 500 .875rem/1.7 var(--body-font); letter-spacing: .08em; margin-block: 0 1rem; }
.hero h1 { position: relative; z-index: 1; font: 400 clamp(3.5rem, 8.2vw, 7rem)/1.03 Georgia, "Times New Roman", serif; letter-spacing: -.045em; margin-block: 1.5rem; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.lead { font-size: 1.0625rem; line-height: 1.95; max-width: 34rem; }
.hero-art { min-height: 400px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center, #e9cac0, transparent 66%); }
.heart { position: relative; width: 170px; height: 170px; margin-top: 45px; background: var(--pink); transform: rotate(-45deg); border-radius: 24px 0 24px 0; box-shadow: -14px 20px 45px #9a4c3430; }
.heart::before, .heart::after { content: ""; position: absolute; width: 170px; height: 170px; background: var(--pink); border-radius: 50%; }
.heart::before { top: -85px; left: 0; }
.heart::after { top: 0; left: 85px; }
.orbit { position: absolute; width: min(92%, 320px); height: 125px; border: 1px solid #7b8978; border-radius: 50%; transform: rotate(-28deg); z-index: 2; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { font: 400 clamp(2rem, 4vw, 2.5rem)/1.25 Georgia, "Times New Roman", serif; margin: 0; }
.section-head span { font-size: 1rem; color: var(--muted); }
.works, .portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
.work-image, .work-card .work-preview { background: #ebe7de; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 0; height: auto; }
.work:nth-child(2) .work-image { background: #e8d9d1; }
.work-image img, .work-card .work-photo img { width: 100%; height: 100%; object-fit: contain; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; }
.work h3, .work-card h2, .work-card h3 { font: 500 clamp(1.5rem, 3vw, 1.875rem)/1.45 var(--body-font); margin-block: 1rem .5rem; }
.work p, .event p, details { font-size: 1rem; line-height: 1.9; }
.tag, .work p.tag, .work-badges, .footer { font-size: .875rem; color: var(--muted); }
details { border-top: 1px solid var(--line); margin-top: 1.25rem; }
summary { padding-block: .875rem; min-height: 44px; cursor: pointer; }
details p { padding-bottom: .5rem; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2.5rem; border-block: 1px solid var(--line); }
.about h1, .about h2 { font: 400 clamp(2rem, 4.5vw, 3rem)/1.25 Georgia, "Times New Roman", serif; margin-block: 0 1.5rem; }
.about p { font-size: 1.0625rem; line-height: 2; }
.keywords { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.keywords span { border: 1px solid var(--line); border-radius: 2rem; padding: .5rem .875rem; font-size: .875rem; }
.journey { list-style: none; padding: 0; margin: 0; }
.event { display: grid; grid-template-columns: minmax(7rem, .6fr) minmax(0, 2fr); gap: 2rem; border-top: 1px solid var(--line); padding-block: 1.75rem; }
.year { font: 400 clamp(1.75rem, 3vw, 2.3rem)/1.4 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.event h3 { font-size: 1.0625rem; font-weight: 600; margin-block: 0 .375rem; }
.event p { color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
.footer em { font: italic 1.25rem/1.5 Georgia, "Times New Roman", serif; }
a.more { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding-block: .75rem; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.favorites { border-top: 1px solid var(--line); }
.spotify-player { width: min(100%, 42rem); margin: 0 auto; }
.spotify-player iframe { display: block; width: 100%; max-width: 100%; height: 352px; border: 0; border-radius: 12px; }
.spotify-link { text-align: center; }
.portfolio-toolbar { padding-block: 3rem 1rem; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; }
.portfolio-toolbar h1 { font: 400 clamp(2.25rem, 6vw, 4rem)/1.2 Georgia, "Times New Roman", serif; margin-block: .75rem; }
.portfolio-searchbar { display: grid; gap: .5rem; width: min(100%, 22rem); }
.portfolio-searchbar input { width: 100%; min-width: 0; padding: .75rem; background: transparent; color: var(--ink); border: 1px solid var(--muted); border-radius: 4px; }
.work-card { display: block; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.work-card-body { padding-block: 1.25rem 0; }
.work-details { margin-block: 1rem; }
.work-details > div:first-child { padding-top: 0; }
.work-details > div { border-bottom: 1px solid var(--line); padding-block: .875rem; }
.work-details dt { font-size: .875rem; color: var(--muted); }
.work-details dd { margin: .25rem 0 0; font-size: 1rem; }
.work-links, .work-badges { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.work-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.work-badges span { color: var(--muted); font-size: .9375rem; }
/* Fallback previews also support future projects without images. */
.work-preview { flex-wrap: wrap; gap: 1rem; }
.work-preview-title { font-size: 1.25rem; }
.work-preview-line, .work-preview-row, .work-preview-mobile-row { display: block; width: 70%; height: .75rem; background: #9daa98; }
.work-preview-phone { display: grid; gap: .75rem; width: 40%; padding: 1rem; border: 2px solid var(--ink); border-radius: 1rem; }
.work-preview-card { width: 30%; height: 4rem; background: var(--paper); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; padding: .75rem; background: var(--paper); }
.skip-link:focus { top: .5rem; }
/* Existing local admin forms continue using styles.css beneath this theme. */
.panel, .hero-card { background: transparent; box-shadow: none; border-radius: 0; }
.button { border-radius: 4px; }
.button-primary { background: var(--ink); color: var(--paper); }
.developer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-block: 1.5rem; }
.developer-links a { padding: 1rem; border: 1px solid var(--line); }
.task-form input, .task-form textarea, .task-form select { max-width: 100%; font-size: 1rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .top, .topbar { flex-direction: column; align-items: flex-start; }
  .nav, .topbar-links { gap: .25rem 1rem; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 5rem); }
  .works, .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-searchbar { width: 100%; }
  .hero-art { min-height: 220px; }
  .hero-art .heart { width: 110px; height: 110px; margin-top: 30px; }
  .hero-art .heart::before, .hero-art .heart::after { width: 110px; height: 110px; }
  .hero-art .heart::before { top: -55px; }
  .hero-art .heart::after { left: 55px; }
  .hero-art .orbit { width: 240px; height: 94px; }
  .event { grid-template-columns: 1fr; gap: .625rem; padding-block: 1.5rem; }
  .learning-split-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Affiliations are parallel list items, with one clear community link. */
.profile-roles { list-style: none; padding: 0; margin: 0; }
.profile-roles > li { border-bottom: 1px solid var(--line); padding-block: .875rem; }
.profile-roles > li:first-child { padding-top: 0; }
.profile-role-name { display: block; overflow-wrap: anywhere; font-size: 1.0625rem; font-weight: 500; }
.profile-role-detail { display: block; color: var(--muted); font-size: .875rem; }
.profile-community { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; grid-template-rows: auto auto; align-items: center; column-gap: 1rem; min-height: 44px; text-decoration: none; }

.profile-community strong { display: block; color: inherit; font-size: 1.0625rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.profile-community:hover strong, .profile-community:focus-visible strong { text-decoration-color: currentColor; }
.profile-community > .profile-role-detail { grid-column: 1; grid-row: 2; }

/* Supplied artwork keeps its original shape and color. */
.profile-portrait { width: min(100%, 11rem); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 50%; margin-top: 0; }
.profile-portrait-small { width: min(100%, 7.5rem); }


.community-logo { width: 3.5rem; height: 3.5rem; grid-column: 2; grid-row: 1 / 3; align-self: center; object-fit: contain; justify-self: end; border-radius: .375rem; }
.favorite-landscape { margin: 0; }
.favorites-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.favorite-music { min-width: 0; }
.favorite-landscape img { width: 100%; height: auto; aspect-ratio: 1280 / 670; object-fit: contain; }


/* Links share the surrounding ink color; fine rules and focus communicate action. */
.profile-name { font-size: 1.25rem; font-weight: 500; margin-block: 1rem 0; }
.profile-organization { display: block; min-height: 44px; text-decoration: none; }
.profile-organization .profile-role-name { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.profile-organization:hover .profile-role-name, .profile-organization:focus-visible .profile-role-name { text-decoration-color: currentColor; }
a.more:hover, a.more:focus-visible, .profile-organization:hover, .profile-organization:focus-visible, .work-links a:hover, .work-links a:focus-visible { text-decoration-color: currentColor; }
.link-icon { display: inline-block; width: 1.5rem; height: 1.5rem; object-fit: contain; flex-shrink: 0; }
/* Official marks retain their own proportions and built-in clear space. */
.footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 2rem 3rem; padding-block: 3rem; }
.footer-identity { display: grid; gap: .5rem; }
.footer-contact { min-width: 0; }
.footer-contact h2 { font: 400 1.75rem/1.3 Georgia, "Times New Roman", serif; margin: 0 0 1rem; color: var(--ink); }
.contact-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; color: var(--ink); }
.contact-links li, .contact-links a, .contact-links a > span:last-child { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.contact-links a { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 104px; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.contact-links a:hover { text-decoration-color: currentColor; }
.contact-icon-frame { display: grid; place-items: center; width: 72px; max-width: 100%; height: 72px; flex-shrink: 0; }
.contact-links .link-icon { width: 24px; height: 24px; }
.contact-links img[src$="icon-linkedin.png"] { width: 28px; height: 28px; }
.contact-links img[src$="icon-note.svg"], .contact-links img[src$="icon-wantedly.svg"] { width: 48px; height: 48px; }
.footer-copyright { font-size: .875rem; }
.event-source { font-size: .9375rem; padding-block: .375rem; }
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr; }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorite-landscape { max-width: 42rem; margin-inline: auto; }
}
@media (max-width: 640px) {
  .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .contact-links a { flex-direction: row; min-height: 72px; gap: .25rem; }
  .contact-icon-frame { width: 72px; min-width: 72px; }
}
@media (max-width: 380px) {
  .contact-links a { flex-direction: column; min-height: 104px; }
}
