:root {
  --text: #1f1d1b;
  --muted: #6f6860;
  --line: #ded8cf;
  --paper: #fffdf9;
  --background: #f8f6f1;
  --accent: #6d4c2f;
  --accent-dark: #3d2d20;
  --soft-gold: #b99a5f;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 56px 24px;
}

.page-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.home-hero {
  width: 100%;
  max-width: 760px;
  padding: 64px 0;
}

.eyebrow,
.article-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.article-body blockquote,
.article-note {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
}

h1 {
  margin: 8px 0 24px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 600;
}

.lead,
.article-lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: #261d16;
}

.note,
.path-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.path-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.protected-shell {
  max-width: 920px;
}

.article-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(40, 32, 24, 0.08);
}

.watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='180' viewBox='0 0 560 180'%3E%3Cg transform='translate(14 118) rotate(-22)'%3E%3Ctext fill='%23585858' fill-opacity='0.16' font-family='Arial, sans-serif' font-size='24' font-weight='700'%3ELIMITED PREVIEW / DEMO-2026-001 / %E8%BB%A2%E8%BC%89%E7%A6%81%E6%AD%A2%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 560px 180px;
}

.watermark span {
  display: none;
}

.article-header,
.article-body,
.article-footer {
  position: relative;
  z-index: 1;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-kicker span {
  padding: 4px 9px;
  border: 1px solid rgba(109, 76, 47, 0.28);
  background: rgba(185, 154, 95, 0.09);
}

.view-id {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.article-header h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* Article protection is a deterrent for ordinary browser use, not a security boundary. */
.protected-content .article-body {
  user-select: none;
  -webkit-user-select: none;
}

.article-body {
  padding-top: 32px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.04rem;
  line-height: 2.05;
}

.article-body h2 {
  margin: 46px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--soft-gold);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.45;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-intro {
  font-size: 115%;
}

.article-body blockquote,
.article-note {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--soft-gold);
  background: rgba(185, 154, 95, 0.08);
  color: #352a20;
}

.article-body blockquote p,
.article-note p {
  margin: 0;
}

.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.reaction-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reaction-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-dark);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.reaction-button:hover,
.reaction-button:focus-visible {
  border-color: var(--soft-gold);
  outline: none;
  background: rgba(185, 154, 95, 0.08);
}

.demo-message {
  min-height: 1.7em;
  margin: 14px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.print-block-message {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding: 28px 16px;
  }

  .home-hero {
    padding: 32px 0;
  }

  .article-card {
    padding: 24px 18px;
  }

  .view-id {
    text-align: left;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.95;
  }

  .watermark {
    opacity: 0.58;
    background-size: 420px 150px;
  }

  .reaction-buttons {
    display: grid;
  }

  .reaction-button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .protected-shell {
    display: none;
  }

  .print-block-message {
    display: block;
    margin: 25vh auto 0;
    width: min(90%, 620px);
    padding: 32px;
    border: 2px solid #333;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
  }
}
