/*
Theme Name: The Daiki Journals
Author: K. Shimono
Version: 1.0
*/

:root {
  --bg-main: #f6eedf;
  --bg-paper: #fff9ef;
  --ink: #2f2822;
  --muted: #6e6257;
  --gold: #dfad4c;
  --sakura: #e5b7b8;
  --forest: #6f7b59;
  --line: #d9c9b7;
  --shadow: 0 20px 45px rgba(57, 37, 12, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", sans-serif;
  background: var(--bg-main);
  color: var(--ink);
  line-height: 1.65;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 0% 12%,
      rgba(229, 183, 184, 0.38),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(223, 173, 76, 0.34),
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 100%,
      rgba(111, 123, 89, 0.18),
      transparent 36%
    );
}

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Zen Old Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.topbar nav {
  display: flex;
  gap: 1rem;
}

.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.topbar nav a:hover {
  color: #8a5f18;
}

/* HERO */

.hero {
  padding: 2.4rem 0 1.7rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 100%;
}

.hero-text > .tag {
  text-align: center;
}

.hero-text h1 {
  text-align: center;
  margin-bottom: 0;
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.9rem;
  font-weight: 800;
  color: #845a14;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Zen Old Mincho", serif;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 4rem);
}

.subtitle {
  font-size: clamp(1.4rem, 2.7vw, 1.7rem);
  margin: 0;
  color: #51463b;
  font-family: "Zen Old Mincho", serif;
  position: relative;
  top: -2px;
}

/*
  Equal spacing:
  subtitle/button → description
  description → inspiration photo
*/
.subtitle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
}

.lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;

  margin: 0.8rem auto 0;
  text-align: center;
}
/* BOOK COVER */

.cover-card {
  margin: 0;
  margin-top: 0;
  align-self: start;
  display: block;

  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 18px;

  /* Equal white frame around the cover */
  padding: 0.75rem;

  box-shadow: var(--shadow);
}

.cover-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* BUTTON ROW */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* INSPIRATION PHOTO */

.inspiration-shot {
  margin: auto 0 0;

  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: var(--shadow);
  max-width: 700px;
}

.inspiration-shot img {
  width: 100%;
  max-height: 265px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.inspiration-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #9b4b2d;
  color: #fff;
}

.btn-primary:hover {
  background: #833920;
}

.btn-secondary {
  color: var(--ink);
  background: var(--bg-paper);
  border-color: var(--line);
}

/* POSITIONING SECTION */

.positioning {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.4rem;
}

.positioning article,
.preface,
.future article,
.daiki-copy,
.daiki-image {
  background: rgba(255, 249, 239, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.positioning article {
  padding: 1rem;
}

.positioning p,
.preface p,
.daiki-copy p,
.future p {
  color: var(--muted);
  margin: 0;
}

.daiki-copy .tag {
  font-size: 0.9rem;
}

.positioning h2,
.daiki-copy h2 {
  font-size: 1.8rem;
}

.daiki-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.daiki-copy li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.positioning p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
/* DAIKI */

.daiki {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.daiki-image {
  padding: 0.75rem;
}

.daiki-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.daiki-copy {
  padding: 1.2rem;
}

.daiki-copy ul {
  margin: 0.85rem 0 0;
  padding-left: 1rem;
}

/* PREFACE */

.preface {
  margin-top: 2.2rem;
  padding: 1.25rem 1.5rem;
}

.preface p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.preface p + p {
  margin-top: 0.65rem;
}

.preface h2 {
  font-size: 1.8rem;
  line-height: 1.3;
}

.preface .tag {
  font-size: 0.9rem;
}
/* WAITLIST */

/* WAITLIST */

.waitlist {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;

  background: rgba(255, 249, 239, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
}

.waitlist-form {
  padding: 1rem;

  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}

/* Contact Form 7 */

.waitlist-form .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "field button"
    "response response";
  gap: 0.65rem 0.8rem;
  align-items: end;
}

.waitlist-form .wpcf7-form > p:first-of-type {
  grid-area: field;
  margin: 0;
}

.waitlist-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}

.waitlist-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.35rem;
}

.waitlist-form input[type="email"] {
  width: 100%;
  margin: 0;
  border: 1px solid #c8b8a8;
  border-radius: 10px;
  padding: 0.72rem 0.75rem;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}

.waitlist-form .wpcf7-submit {
  grid-area: button;

  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;

  font: inherit;
  font-weight: 800;

  cursor: pointer;
  white-space: nowrap;

  background: #9b4b2d;
  color: #fff;

  transition:
    transform 140ms ease,
    background-color 140ms ease;
}

.waitlist-form .wpcf7-submit:hover {
  background: #833920;
  transform: translateY(-1px);
}

.waitlist-form .wpcf7-response-output {
  grid-area: response;
  margin: 0.4rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.waitlist-form .wpcf7-spinner {
  display: none;
}

.waitlist-form .note {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.waitlist h2 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

/* CLOSING SECTION */

.closing {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.closing-card {
  background: rgba(255, 249, 239, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.closing-card .tag {
  color: #845a14;
  margin-bottom: 0.5rem;
}

.closing-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.closing-card > p:not(.tag) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* FOOTER */

.footer {
  margin: 2.6rem auto 1.7rem;
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: #8a5f18;
  text-decoration: none;
  font-weight: 800;
}

/* ANIMATIONS */

.hero,
.positioning,
.daiki,
.preface,
.waitlist,
.closing {
  animation: fade-up 640ms ease both;
}

.positioning {
  animation-delay: 90ms;
}

.daiki {
  animation-delay: 160ms;
}

.preface {
  animation-delay: 230ms;
}

.waitlist {
  animation-delay: 300ms;
}

.closing {
  animation-delay: 370ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 980px) {
  .hero,
  .daiki,
  .waitlist,
  .closing {
    grid-template-columns: 1fr;
  }

  .positioning {
    grid-template-columns: 1fr;
  }

  .inspiration-shot {
    max-width: 100%;
  }

  .cover-card {
    margin-top: 0;
  }
}

.hero-text > .tag,
.daiki-copy .tag,
.preface .tag,
.waitlist .tag,
.future .tag {
  color: #845a14;
}

/* MOBILE */

@media (max-width: 660px) {
  .wrap {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .topbar nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* THANK YOU PAGE */

.thank-you-page {
  max-width: 720px;
  margin: 5rem auto;
  padding: 2rem;

  background: rgba(255, 249, 239, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);

  text-align: center;
}

.thank-you-page h1 {
  margin-bottom: 1rem;
}

.thank-you-page p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.thank-you-page .btn {
  margin-top: 1rem;
}
