@charset "UTF-8";

:root {
  --ink: #282724;
  --muted: #6d6b66;
  --paper: #fbfaf7;
  --soft: #f4f3ef;
  --line: #d9d6cf;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--serif); line-height: 1.9; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sample-site { min-height: 100vh; background: var(--paper); transition: background-color .35s, color .35s; }

.sample-header { height: 80px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid #eeeae4; }
.sample-logo { min-width: 190px; }
.sample-header .sample-logo { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.sample-theme-label { grid-row: 1 / span 2; align-self: center; padding: 3px 9px; border-radius: 20px; background: var(--theme-soft); color: var(--theme-accent-dark); font: 9px Georgia, serif; letter-spacing: .12em; }
.sample-logo strong { display: block; font-size: clamp(18px, 2vw, 27px); font-weight: 500; letter-spacing: .08em; line-height: 1.25; }
.sample-logo small { display: block; margin-top: 3px; color: #585752; font-size: 11px; letter-spacing: .14em; }
.sample-nav { display: flex; align-items: center; gap: clamp(17px, 2.6vw, 38px); font-size: 15px; letter-spacing: .07em; }
.sample-nav a { position: relative; padding: 8px 0; }
.sample-nav a:first-child::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: #4a4945; }

.hero { position: relative; min-height: clamp(390px, 43vw, 580px); display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%); align-items: center; overflow: hidden; isolation: isolate; background: var(--theme-surface); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; left: -120px; bottom: -130px; border: 1px solid color-mix(in srgb, var(--theme-accent) 25%, transparent); transform: rotate(32deg); }
.hero__content { padding: clamp(45px, 6vw, 85px) clamp(25px, 3vw, 46px) clamp(45px, 6vw, 85px) clamp(38px, 6vw, 92px); }
.hero h1 { margin: 0 0 21px; font-size: clamp(25px, 3vw, 45px); font-weight: 400; letter-spacing: .045em; line-height: 1.65; white-space: pre-line; }
.hero__text { margin: 0; font-size: clamp(11px, 1.1vw, 15px); line-height: 2.1; white-space: pre-line; }
.hero__english { display: flex; align-items: center; gap: 22px; margin: 28px 0 0; color: var(--theme-accent-dark); font-size: 14px; letter-spacing: .14em; }
.hero__english::before { content: ""; width: 78px; height: 1px; background: var(--theme-accent); }
.hero__visual { position: relative; width: calc(100% - clamp(24px, 4vw, 55px)); margin: clamp(24px, 3vw, 42px) clamp(24px, 4vw, 55px) clamp(24px, 3vw, 42px) 0; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 13px 36px rgba(49, 44, 37, .1); }
.hero__visual::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, var(--theme-photo-color), transparent 60%); opacity: 1; transition: opacity .3s; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position); transition: filter .35s; }
.hero__note { position: absolute; z-index: 2; right: 5%; bottom: 6%; margin: 0; padding: 10px 14px; background: rgba(255,255,255,.72); color: var(--theme-accent-dark); font-size: clamp(9px, 1vw, 13px); letter-spacing: .14em; line-height: 1.9; white-space: pre-line; }
.mood-plain .hero__visual::after { opacity: 0; }
.mood-clear .hero__visual::after { opacity: .45; }
.mood-clear .hero__image { filter: saturate(1.08) contrast(1.06); }
.image-portrait .hero { min-height: clamp(500px, 51vw, 650px); grid-template-columns: minmax(0, 58%) minmax(0, 42%); }
.image-portrait .hero__visual { width: min(82%, 410px); margin: 32px auto; aspect-ratio: 3 / 4; justify-self: center; }
.image-square .hero { grid-template-columns: minmax(0, 53%) minmax(0, 47%); }
.image-square .hero__visual { width: min(86%, 490px); margin: 32px auto; aspect-ratio: 1; justify-self: center; }

.site-block { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: clamp(55px, 7vw, 95px) 0; }
.section-heading { display: flex; align-items: baseline; gap: 22px; margin: 0 0 36px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: .08em; }
.section-heading span { display: flex; align-items: center; gap: 18px; color: #676560; font: italic 11px Georgia, serif; letter-spacing: .06em; }
.section-heading span::after { content: ""; width: 55px; height: 1px; background: var(--theme-accent); }
.section-intro-row { display: flex; align-items: baseline; gap: clamp(22px, 4vw, 55px); margin-bottom: 36px; }
.section-intro-row .section-heading { flex: 0 0 auto; margin-bottom: 0; }
.section-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; white-space: pre-line; }

.profile { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .55fr) minmax(120px, .3fr); align-items: center; gap: clamp(30px, 5vw, 72px); }
.profile__content h3 { margin: 0 0 20px; font-size: clamp(19px, 2vw, 27px); font-weight: 500; letter-spacing: .08em; }
.profile__content p { margin: 0; font-size: 15px; line-height: 2; white-space: pre-line; }
.profile__image { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: center; }
.profile__aside { margin: 0; font-size: clamp(12px, 1.25vw, 18px); line-height: 2.3; letter-spacing: .12em; white-space: pre-line; }
.outline-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 24px; padding: 10px 31px; border: 1px solid var(--theme-accent); background: transparent; color: inherit; cursor: pointer; font-size: 11px; letter-spacing: .12em; }
.outline-link::after { content: "→"; }
.outline-link--external::after { content: "↗"; }

.books-section { width: min(1280px, calc(100% - 64px)); padding-top: 15px; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.book-card { min-width: 0; padding: 25px 25px 17px; background: rgba(255,255,255,.72); box-shadow: 0 3px 20px rgba(57,52,43,.035); }
.book-card__inner { display: grid; grid-template-columns: minmax(90px, 36%) 1fr; gap: 19px; align-items: start; }
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 5px 12px rgba(40,35,30,.12); }
.book-card h3 { margin: 3px 0 12px; font-size: clamp(14px, 1.35vw, 19px); font-weight: 500; line-height: 1.7; white-space: pre-line; }
.book-card p { margin: 0; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.book-card__caption { margin: 15px 0 0 !important; padding-top: 10px; border-top: 1px solid #e5e1da; text-align: center; color: #4f4d48; letter-spacing: .05em; }
.card-link {
  width: fit-content;
  margin: 14px auto 0;
  padding: 7px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--theme-accent);
  background: transparent;
  color: var(--theme-accent-dark);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
}
.card-link::after { content: "→"; }
.card-link--external::after { content: "↗"; }
.card-link:hover { background: var(--theme-soft); }

.notes-section { padding-top: 60px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 28px; }
.note-card { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.note-card img { display: block; width: 100%; aspect-ratio: 1.8 / 1; object-fit: cover; filter: saturate(.74); }
.note-card time { display: block; margin: 11px 0 4px; color: #76736d; font: 12px var(--sans); }
.note-card h3 { margin: 0 0 7px; font-size: 15px; font-weight: 500; line-height: 1.65; }
.note-card p { margin: 0; color: #5e5b56; font-size: 14px; line-height: 1.9; }
.note-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.contact-section { width: 100%; margin-top: 15px; padding: 43px max(40px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid #e4e1db; background: var(--theme-soft); }
.contact-section .section-heading { margin-bottom: 4px; }
.contact-section p { margin: 0; color: #5e5c57; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.contact-button { min-width: 300px; padding: 17px 25px; border: 1px solid var(--theme-accent); text-align: center; font-size: 14px; letter-spacing: .08em; }

.sample-footer { min-height: 150px; padding: 35px clamp(30px, 6.5vw, 95px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; background: #f5f4f1; border-top: 1px solid #e6e3dd; }
.sample-footer .sample-logo strong { font-size: 22px; }
.sample-footer__right { text-align: right; }
.sample-footer nav { display: flex; gap: 25px; margin-bottom: 30px; font-size: 12px; }
.sample-footer p { margin: 0; color: #77746e; font-size: 9px; }

/* Modern theme */
.theme-modern {
  --ink: #172c3b;
  --muted: #637682;
  --paper: #f8fafb;
  --line: #d4e0e7;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.theme-modern .sample-header { min-height: 76px; border-color: #d9e4ea; background: rgba(251,253,254,.97); }
.theme-modern .sample-theme-label { background: var(--theme-accent); color: #fff; }
.theme-modern .sample-logo strong { color: var(--theme-accent-dark); }
.theme-modern .sample-nav a:first-child::after { background: var(--theme-accent); height: 2px; }
.theme-modern .hero { grid-template-columns: minmax(0, 43%) minmax(0, 57%); background: linear-gradient(135deg, var(--theme-surface), #f9fcfd); }
.theme-modern .hero::before { z-index: 0; width: 170px; height: 460px; left: -95px; bottom: -200px; border: 0; background: color-mix(in srgb, var(--theme-accent) 16%, transparent); transform: rotate(28deg); clip-path: polygon(0 0, 100% 35%, 48% 100%); }
.theme-modern .hero::after { content: ""; position: absolute; z-index: 0; width: 230px; height: 230px; right: -105px; top: -115px; border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent); transform: rotate(45deg); }
.theme-modern .hero__content { position: relative; z-index: 2; padding-left: clamp(38px, 7vw, 105px); }
.theme-modern .hero h1 { color: var(--theme-accent-dark); font-size: clamp(27px, 3.15vw, 47px); line-height: 1.55; }
.theme-modern .hero__english { width: fit-content; padding: 10px 22px; border: 1px solid var(--theme-accent); background: var(--theme-accent); color: #fff; letter-spacing: .11em; }
.theme-modern .hero__english::before { display: none; }
.theme-modern .hero__visual { width: calc(100% - clamp(20px, 3.3vw, 48px)); margin-right: clamp(20px, 3.3vw, 48px); border-radius: 0 0 0 54px; box-shadow: 0 18px 40px rgba(37, 72, 94, .14); }
.theme-modern .hero__visual::after { background: linear-gradient(125deg, var(--theme-photo-color), transparent 52%), linear-gradient(0deg, rgba(46,100,130,.07), rgba(46,100,130,.07)); }
.theme-modern .hero__note { top: 7%; right: 5%; bottom: auto; padding: 12px 13px; background: rgba(244,250,253,.78); color: var(--theme-accent-dark); writing-mode: vertical-rl; }
.theme-modern.image-portrait .hero { grid-template-columns: minmax(0, 58%) minmax(0, 42%); }
.theme-modern.image-square .hero { grid-template-columns: minmax(0, 52%) minmax(0, 48%); }
.theme-modern.image-portrait .hero__visual,
.theme-modern.image-square .hero__visual { margin-right: auto; border-radius: 0 0 0 48px; }
.theme-modern .site-block { position: relative; }
.theme-modern .section-heading h2 { color: var(--theme-accent-dark); }
.theme-modern .section-heading span { color: var(--theme-accent); }
.theme-modern .profile { width: 100%; max-width: none; padding-right: max(50px, calc((100% - 1160px) / 2)); padding-left: max(50px, calc((100% - 1160px) / 2)); grid-template-columns: minmax(220px, .6fr) minmax(0, 1.2fr) minmax(120px, .34fr); background: linear-gradient(120deg, var(--theme-soft), #fbfdfe 70%); }
.theme-modern .profile::after { content: ""; position: absolute; right: 17%; bottom: 0; width: 110px; height: 110px; background: color-mix(in srgb, var(--theme-accent) 9%, transparent); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.theme-modern .profile__content { grid-column: 2; }
.theme-modern .profile__image { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; box-shadow: 18px 18px 0 color-mix(in srgb, var(--theme-accent) 13%, transparent); }
.theme-modern .profile__aside { grid-column: 3; }
.theme-modern .outline-link { color: var(--theme-accent-dark); }
.theme-modern .books-section { width: min(1280px, calc(100% - 64px)); }
.theme-modern .book-card { border-top: 3px solid var(--theme-accent); background: #fff; box-shadow: 0 8px 28px rgba(35,68,88,.065); }
.theme-modern .book-card__caption { color: var(--theme-accent-dark); border-color: color-mix(in srgb, var(--theme-accent) 25%, white); }
.theme-modern .card-link { border-color: var(--theme-accent); background: var(--theme-accent); color: #fff; }
.theme-modern .card-link:hover { background: var(--theme-accent-dark); }
.theme-modern .notes-section { width: 100%; max-width: none; padding-right: max(50px, calc((100% - 1180px) / 2)); padding-left: max(50px, calc((100% - 1180px) / 2)); background: linear-gradient(180deg, #fff, var(--theme-surface)); }
.theme-modern .note-card img { filter: saturate(.78) contrast(1.02); }
.theme-modern .note-card time { color: var(--theme-accent); }
.theme-modern .contact-section { margin-top: 0; border-top: 0; background: linear-gradient(115deg, var(--theme-soft), var(--theme-surface)); }
.theme-modern .contact-button { border-color: var(--theme-accent); background: var(--theme-accent); color: #fff; }
.theme-modern .sample-footer { min-height: 165px; border: 0; background: var(--theme-accent-dark); color: #fff; }
.theme-modern .sample-footer .sample-logo strong { color: #fff; }
.theme-modern .sample-footer .sample-logo small,
.theme-modern .sample-footer p { color: rgba(255,255,255,.62); }
.theme-modern .article-view { background: linear-gradient(180deg, var(--theme-surface), #fff 280px); }
.theme-modern .article-hero { border-color: var(--theme-accent); }
.theme-modern .article-hero time,
.theme-modern .article-back { color: var(--theme-accent); }

/* Literary theme */
.theme-literary {
  --ink: #292722;
  --muted: #756d62;
  --paper: #f3eee5;
  --line: #cfc4b4;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.62), transparent 30%),
    repeating-linear-gradient(0deg, rgba(104,88,66,.018) 0 1px, transparent 1px 5px),
    var(--paper);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.theme-literary .sample-header {
  min-height: 78px;
  border-color: #d8cfc2;
  background: rgba(247,243,235,.97);
  box-shadow: 0 4px 20px rgba(38,34,28,.06);
}
.theme-literary .sample-theme-label {
  border-radius: 1px;
  background: var(--theme-accent);
  color: #fff;
  letter-spacing: .16em;
}
.theme-literary .sample-logo strong { color: #262722; }
.theme-literary .sample-logo small { color: #766d60; }
.theme-literary .sample-nav a:first-child::after { background: var(--theme-accent); }
.theme-literary .hero {
  min-height: clamp(470px, 48vw, 650px);
  grid-template-columns: minmax(0, 51%) minmax(0, 49%);
  color: #f5f0e7;
  background:
    radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--theme-accent) 22%, transparent), transparent 34%),
    linear-gradient(125deg, #172723, var(--theme-accent-dark));
}
.theme-literary .hero::before {
  z-index: 0;
  width: 340px;
  height: 340px;
  left: -175px;
  bottom: -230px;
  border: 1px solid rgba(222,204,177,.22);
  border-radius: 50%;
  transform: none;
}
.theme-literary .hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 23px;
  border: 1px solid rgba(231,217,197,.14);
  pointer-events: none;
}
.theme-literary .hero__content { position: relative; z-index: 2; padding-left: clamp(44px, 7vw, 110px); }
.theme-literary .hero h1 { color: #f8f3ea; font-size: clamp(27px, 3.1vw, 47px); line-height: 1.6; text-shadow: 0 1px 16px rgba(0,0,0,.18); }
.theme-literary .hero__text { color: rgba(248,243,234,.82); }
.theme-literary .hero__english { color: #d6c2a5; font: italic 14px Georgia, serif; letter-spacing: .09em; }
.theme-literary .hero__english::before { background: #bda98d; }
.theme-literary .hero__visual {
  width: calc(100% - clamp(35px, 5vw, 76px));
  margin: clamp(36px, 4vw, 58px) clamp(35px, 5vw, 76px) clamp(36px, 4vw, 58px) 0;
  border: 11px solid #e9e0d2;
  background: #1b211f;
  box-shadow: 0 24px 55px rgba(0,0,0,.3);
  transform: rotate(.35deg);
}
.theme-literary .hero__visual::after {
  background:
    linear-gradient(115deg, rgba(19,27,25,.62), transparent 55%),
    linear-gradient(0deg, var(--theme-photo-color), rgba(20,25,23,.18));
  opacity: .8;
}
.theme-literary.mood-plain .hero__visual::after { opacity: .14; }
.theme-literary.mood-clear .hero__visual::after { opacity: .38; }
.theme-literary .hero__image { filter: saturate(.72) contrast(1.06) brightness(.82); }
.theme-literary.mood-plain .hero__image { filter: none; }
.theme-literary.mood-clear .hero__image { filter: saturate(.9) contrast(1.08) brightness(.94); }
.theme-literary .hero__note {
  top: 6%;
  right: 5%;
  bottom: auto;
  padding: 12px 10px;
  background: rgba(239,231,218,.86);
  color: #394139;
  writing-mode: vertical-rl;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.theme-literary.image-portrait .hero { grid-template-columns: minmax(0, 59%) minmax(0, 41%); }
.theme-literary.image-portrait .hero__visual,
.theme-literary.image-square .hero__visual { margin-right: auto; }
.theme-literary .site-block { position: relative; }
.theme-literary .section-heading span { color: var(--theme-accent); }
.theme-literary .profile {
  width: 100%;
  max-width: none;
  padding-right: max(55px, calc((100% - 1160px) / 2));
  padding-left: max(55px, calc((100% - 1160px) / 2));
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.1fr) minmax(150px, .38fr);
  background:
    radial-gradient(circle at 8% 20%, rgba(150,125,91,.1), transparent 23%),
    repeating-linear-gradient(3deg, rgba(100,82,59,.018) 0 1px, transparent 1px 7px),
    #f4efe6;
}
.theme-literary .profile__content { grid-column: 2; }
.theme-literary .profile__image {
  grid-column: 1;
  grid-row: 1;
  padding: 9px 9px 28px;
  border: 1px solid #d8cec0;
  background: #eee7dc;
  box-shadow: -14px 16px 30px rgba(61,50,37,.14);
  transform: rotate(-1.2deg);
}
.theme-literary .profile__aside { grid-column: 3; color: #6a5e50; }
.theme-literary .outline-link { border-radius: 30px; border-color: var(--theme-accent); }
.theme-literary .books-section {
  width: 100%;
  max-width: none;
  padding-right: max(64px, calc((100% - 1240px) / 2));
  padding-left: max(64px, calc((100% - 1240px) / 2));
  overflow: hidden;
  isolation: isolate;
  color: #f1ece3;
  background:
    radial-gradient(circle at 20% 0, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 38%),
    #1c302c;
}
.theme-literary .books-section .section-heading,
.theme-literary .books-grid { position: relative; z-index: 1; }
.theme-literary .books-section .section-heading span { color: #d6c1a3; }
.theme-literary .books-section .section-heading span::after { background: #a99375; }
.theme-literary .book-card {
  color: #292720;
  background: rgba(246,241,232,.96);
  border: 1px solid rgba(211,198,179,.72);
  box-shadow: 0 12px 36px rgba(5,13,11,.18);
}
.theme-literary .book-card img { filter: sepia(.1) saturate(.78) contrast(1.03); }
.theme-literary .book-card__caption { color: #665b4e; border-color: #d8cdbc; }
.theme-literary .card-link { border-radius: 30px; border-color: #7b684f; color: #594b3b; }
.theme-literary .card-link:hover { background: #e9dece; }
.theme-literary .notes-section {
  width: 100%;
  max-width: none;
  padding-right: max(55px, calc((100% - 1180px) / 2));
  padding-left: max(55px, calc((100% - 1180px) / 2));
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(111,91,65,.018) 0 1px, transparent 1px 6px),
    #f6f1e8;
}
.theme-literary .note-card img { filter: sepia(.2) saturate(.68) contrast(1.02); }
.theme-literary .note-card time { color: var(--theme-accent); }
.theme-literary .contact-section {
  min-height: 320px;
  margin-top: 0;
  padding-top: 58px;
  padding-bottom: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  border: 0;
  color: #2d2b26;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(246,239,227,.28), rgba(246,239,227,.2) 58%, rgba(235,222,202,.08)),
    url("../images/matinami.jpg") center bottom / cover no-repeat;
}
.theme-literary .contact-section > div { position: relative; z-index: 1; }
.theme-literary .contact-section .section-heading { justify-content: center; margin-bottom: 8px; }
.theme-literary .contact-section p { color: #5c5449; }
.theme-literary .contact-button {
  position: relative;
  z-index: 1;
  min-width: min(360px, 100%);
  border-radius: 30px;
  border-color: #6b5b49;
  background: rgba(247,241,231,.78);
  box-shadow: 0 8px 25px rgba(75,56,37,.1);
  backdrop-filter: blur(3px);
}
.theme-literary .sample-footer { min-height: 155px; border: 0; background: #172723; color: #f4eee5; }
.theme-literary .sample-footer .sample-logo strong { color: #f4eee5; }
.theme-literary .sample-footer .sample-logo small,
.theme-literary .sample-footer p { color: rgba(244,238,229,.62); }
.theme-literary .article-view { background: #f4efe6; }
.theme-literary .article-hero { border-color: #c8b9a5; }
.theme-literary .article-back,
.theme-literary .article-hero time { color: var(--theme-accent); }
.theme-literary .article-body img { padding: 10px; border: 1px solid #d0c5b5; background: #eee6da; box-shadow: 0 15px 35px rgba(61,50,37,.12); }

.article-view { min-height: calc(100vh - 80px); background: var(--paper); }
.article-hero { width: min(880px, calc(100% - 60px)); margin: 0 auto; padding: 70px 0 25px; border-bottom: 1px solid var(--line); }
.article-back { display: inline-flex; margin-bottom: 28px; color: #68655f; border: 0; background: transparent; padding: 0; cursor: pointer; font-size: 11px; }
.article-back::before { content: "←"; margin-right: 10px; }
.article-hero time { display: block; color: #77746f; font: 10px var(--sans); }
.article-hero h1 { margin: 10px 0 0; font-size: clamp(25px, 4vw, 40px); font-weight: 500; letter-spacing: .06em; line-height: 1.6; }
.article-body { width: min(760px, calc(100% - 60px)); margin: 0 auto; padding: 45px 0 100px; }
.article-body img { width: 100%; max-height: 480px; margin-bottom: 40px; object-fit: cover; }
.article-body p { margin: 0; font-size: 14px; line-height: 2.25; white-space: pre-line; }

.empty-note { grid-column: 1 / -1; padding: 35px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .sample-header { height: auto; min-height: 70px; padding: 14px 21px; }
  .sample-logo { min-width: 0; }
  .sample-logo strong { font-size: 20px; }
  .sample-theme-label { padding: 2px 7px; font-size: 8px; }
  .sample-nav { display: none; }
  .hero,
  .image-portrait .hero,
  .image-square .hero,
  .theme-modern .hero,
  .theme-modern.image-portrait .hero,
  .theme-modern.image-square .hero,
  .theme-literary .hero,
  .theme-literary.image-portrait .hero,
  .theme-literary.image-square .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .hero__content, .theme-modern .hero__content, .theme-literary .hero__content { width: auto; margin: 0; padding: 46px 25px 36px; }
  .hero h1 { font-size: 26px; letter-spacing: .025em; overflow-wrap: anywhere; }
  .hero__visual, .theme-modern .hero__visual, .theme-literary .hero__visual { width: calc(100% - 38px); margin: 0 19px 28px; border-radius: 0; transform: none; }
  .image-portrait .hero__visual,
  .theme-modern.image-portrait .hero__visual,
  .theme-literary.image-portrait .hero__visual { width: min(66%, 270px); margin: 0 auto 42px; }
  .image-square .hero__visual,
  .theme-modern.image-square .hero__visual,
  .theme-literary.image-square .hero__visual { width: min(86%, 370px); margin: 0 auto 28px; }
  .hero__note, .theme-modern .hero__note, .theme-literary .hero__note { top: auto; right: 4%; bottom: 5%; padding: 8px 10px; writing-mode: horizontal-tb; font-size: 9px; }
  .image-portrait .hero__image,
  .theme-modern.image-portrait .hero__image { box-shadow: 0 13px 36px rgba(49, 44, 37, .12); }
  .image-portrait .hero__note,
  .theme-modern.image-portrait .hero__note,
  .theme-literary.image-portrait .hero__note {
    top: 8%;
    right: 10px;
    bottom: auto;
    max-height: 84%;
    padding: 9px 7px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 5px 18px rgba(33, 42, 47, .09);
    writing-mode: vertical-rl;
    line-height: 1.7;
  }
  .site-block { width: calc(100% - 42px); padding: 55px 0; }
  .section-heading { margin-bottom: 28px; column-gap: 13px; row-gap: 6px; flex-wrap: wrap; }
  .section-heading h2 { flex: 0 0 100%; font-size: 24px; }
  .section-intro-row { display: block; margin-bottom: 28px; }
  .section-intro-row .section-heading { margin-bottom: 9px; }
  .profile { grid-template-columns: 1fr; gap: 25px; }
  .profile__content { order: 2; }
  .profile__image { order: 1; max-height: 420px; }
  .profile__aside { display: none; }
  .theme-modern .profile { width: 100%; padding: 55px 25px; grid-template-columns: minmax(0, 1fr); }
  .theme-modern .profile__content,
  .theme-modern .profile__image { grid-column: auto; grid-row: auto; }
  .theme-literary .profile { width: 100%; padding: 55px 25px; grid-template-columns: minmax(0, 1fr); }
  .theme-literary .profile__content,
  .theme-literary .profile__image { grid-column: auto; grid-row: auto; }
  .theme-literary .profile__image { transform: none; }
  .books-section { width: calc(100% - 28px); }
  .theme-literary .books-section { width: 100%; padding: 55px 21px; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card__inner { grid-template-columns: 115px 1fr; }
  .notes-grid { grid-template-columns: 1fr; gap: 35px; }
  .theme-literary .notes-section { width: 100%; padding: 55px 21px; }
  .contact-section { padding: 46px 25px; display: block; }
  .theme-literary .contact-section {
    min-height: 360px;
    padding: 58px 25px 115px;
    display: flex;
    background-position: 58% bottom;
  }
  .theme-literary .contact-button { margin-top: 0; }
  .contact-button { display: block; min-width: 0; margin-top: 25px; }
  .sample-footer { grid-template-columns: 1fr; text-align: center; }
  .sample-footer__right { text-align: center; }
  .sample-footer nav { display: none; }
  .article-hero, .article-body { width: calc(100% - 42px); }
}
