* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --ink: #1e1a18;
  --soft-ink: rgba(30, 26, 24, 0.7);
  --sky: #f9f5ef;
  --glow: rgba(224, 195, 152, 0.35);
  --line: rgba(30, 26, 24, 0.2);
  --accent: rgba(62, 54, 46, 0.8);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  position: relative;
  background-color: var(--sky);
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 55%), radial-gradient(circle at 80% 0%, rgba(199, 225, 238, 0.35), transparent 45%), linear-gradient(180deg, rgba(235, 218, 195, 0.35), rgba(255, 255, 255, 0));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto;
  background-position: 20% 20%, 80% 0%, center;
  background-attachment: scroll, scroll, scroll;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.curve-field {
  position: fixed;
  inset: -5% -10% 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyMDAwIDEyMDAnPjxwYXRoIGQ9J00tMjAwIDIwMCBDIDE4MCA0MCA2MDAgMzAwIDEwMjAgMTgwIFMgMTkwMCAyNDAgMjIwMCA4MCcgc3Ryb2tlPScjYTZjNWE0JyBzdHJva2Utd2lkdGg9JzIuNCcgZmlsbD0nbm9uZScgb3BhY2l0eT0nMC42NScvPjxwYXRoIGQ9J00tMzAwIDYyMCBDIDEwMCA1MjAgNzYwIDc2MCAxMjYwIDY0MCBTIDIxMDAgNzAwIDI0MDAgNTIwJyBzdHJva2U9JyM5YWI5OWInIHN0cm9rZS13aWR0aD0nMicgZmlsbD0nbm9uZScgb3BhY2l0eT0nMC41OCcvPjxwYXRoIGQ9J00tMTIwIDEwNDAgQyA0MjAgODgwIDkyMCAxMTIwIDE1MDAgOTgwIFMgMjMyMCAxMDYwIDI1NjAgOTQwJyBzdHJva2U9JyM4ZmIwOGYnIHN0cm9rZS13aWR0aD0nMS44JyBmaWxsPSdub25lJyBvcGFjaXR5PScwLjU1Jy8+PC9zdmc+");
  background-repeat: no-repeat;
  background-size: 1700px auto;
  background-position: center 10%;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.sky-glow {
  position: fixed;
  inset: 10% auto auto 40%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(10px);
  opacity: 0.8;
  pointer-events: none;
}

.ink-stroke {
  position: fixed;
  inset: auto auto 10% 10%;
  width: 160px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1), transparent 70%);
  filter: blur(35px);
  transform: rotate(12deg);
  opacity: 0.5;
  pointer-events: none;
}

.ink-stroke.stroke-two {
  inset: 5% 8% auto auto;
  width: 260px;
  height: 260px;
  transform: rotate(-25deg);
  opacity: 0.4;
}

.site-header {
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.2rem 0 0;
}

.brand .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin: 0;
  color: var(--soft-ink);
}

.brand .tagline {
  margin: 0.4rem 0 0;
  color: var(--soft-ink);
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-nav a {
  text-decoration: none;
  color: var(--soft-ink);
  padding-bottom: 0.2rem;
  border-bottom: 0.5px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: var(--soft-ink);
}

main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 5rem;
}

.panel {
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem);
  width: min(860px, 100%);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 60px rgba(133, 115, 91, 0.2);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.8), transparent 55%), linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel + .panel {
  margin-top: 0;
}

.panel h2 {
  margin-top: 0.5rem;
  font-size: 1.6rem;
}

.section-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-ink);
}

.concept p {
  margin-bottom: 1.5rem;
}

.concept .note {
  font-style: italic;
  color: var(--accent);
}

.story .story-body p {
  margin-bottom: 1.8rem;
}

.philosophy ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.philosophy li {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.archive-grid div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.whisper {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.5rem;
  color: var(--soft-ink);
}

.entry {
  margin: 0;
  font-size: 0.95rem;
}

.newsletter-form,
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

input,
textarea,
button {
  font: inherit;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 54, 46, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  border-radius: 18px;
  resize: vertical;
}

button {
  border: none;
  background: var(--accent);
  color: #fdfbf7;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover,
button:focus-visible {
  opacity: 0.85;
}

.form-note {
  font-size: 0.85rem;
  color: var(--soft-ink);
}

.contact-form button {
  width: fit-content;
  justify-self: start;
}

.contact-subtle {
  font-size: 0.95rem;
  color: rgba(30, 26, 24, 0.7);
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--soft-ink);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  body {
    background: linear-gradient(135deg, #f9f5ef 0%, #f3e7d8 50%, #fefcf7 100%);
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .brand {
    max-width: 540px;
  }
}
