/* Counted Out Productions — countedoutproductions.com (single-page studio site)
   v2 skin, Nov 30 2026: "the open book." The badge shows a ball over an open
   book, so the page is the book: warm cream paper, deep teal ink, gold rules,
   serif display type (Fraunces). Deliberately unlike rakusengumi.com. */

:root {
  --paper: #f6f1e2;
  --paper-deep: #efe6cf;
  --card: #fffdf4;
  --ink: #0a2e36;
  --ink-soft: #33565e;
  --teal: #006070;
  --teal-deep: #04222a;
  --gold: #c99327;
  --gold-bright: #e3a82b;
  --gold-soft: #8a6414;
  --edge: #d9cfae;
  --radius: 16px;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(227, 168, 43, 0.22), transparent 70%),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 3px solid var(--gold);
}

.hero-badge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(4, 34, 42, 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  margin: 1.5rem 0 0.75rem;
  color: var(--teal-deep);
}

.hero-line {
  color: var(--gold-soft);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 600;
  margin: 0 auto;
  max-width: 34rem;
}

/* ---------- Sections ---------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 2.75rem 0 0.5rem; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--edge);
  color: var(--teal-deep);
}

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  margin-top: -2px;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(4, 34, 42, 0.10);
}

.card-img {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.5rem -1.5rem 1.1rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.card-img-top { object-position: center 8%; }
.card-img-low { object-position: center 78%; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--teal-deep);
}

.card p { margin: 0 0 0.9rem; color: var(--ink); }

.card p strong { color: var(--teal); }

.card-link {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 147, 39, 0.5);
}

.card-link:hover, .card-link:focus { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- About / Contact ---------- */

.about p, .contact p {
  max-width: 44rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.contact-mail {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 147, 39, 0.5);
  overflow-wrap: anywhere;
}

.contact-mail:hover, .contact-mail:focus { color: var(--teal); }

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  margin-top: 3rem;
  background: var(--teal-deep);
  border-top: 3px solid var(--gold);
  color: #cfd8cf;
}

.footer-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  opacity: 0.95;
}

footer p { margin: 0.9rem 0 0; font-size: 0.95rem; }
