/*
Theme Name: Write It Studios
Theme URI: https://writeitstudios.com/
Author: Write It Studios
Description: Hand-drawn studio site for brand content.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Text Domain: writeit-studio
*/

@font-face {
  font-family: "Write It Hand";
  src: url("assets/caveat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #241c18;
  --muted: #6d6258;
  --paper: #fff8f1;
  --card: #fffdf9;
  --tomato: #e24b3b;
  --cobalt: #2346c0;
  --tape: #ffe38a;
  --line: #241c18;
  --hand: "Write It Hand", "Segoe Print", "Comic Sans MS", cursive;
  --body: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --width: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 217, 204, .7), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(255, 227, 138, .45), transparent 22%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { color: var(--tomato); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: #fff; padding: .4rem .8rem; }
.skip-link:focus { top: 1rem; }

.top { padding: 1.1rem 0 .2rem; }
.top-row, .nav-row, .wrap, .foot-row { max-width: var(--width); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.mark { color: inherit; text-decoration: none; display: flex; align-items: flex-end; gap: .55rem; }
.mark-script { font-family: var(--hand); font-size: 3.4rem; line-height: .8; letter-spacing: -0.03em; }
.mark-small {
  font-family: var(--hand);
  font-size: 1.5rem;
  background: var(--tape);
  padding: .1rem .45rem .15rem;
  transform: rotate(-2deg);
  margin-bottom: .35rem;
}
.menu-btn {
  display: none;
  font-family: var(--hand);
  font-size: 1.4rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: .15rem .8rem .25rem;
  cursor: pointer;
}
.tools { display: flex; align-items: center; gap: .7rem; }
.search-form { display: flex; transform: rotate(1deg); }
.search-form input[type="search"] {
  font: inherit;
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: 12px 0 0 18px;
  padding: .4rem .7rem;
  width: 10.5rem;
  background: #fff;
}
.search-form button {
  font-family: var(--hand);
  font-size: 1.2rem;
  border: 2px solid var(--ink);
  background: var(--tomato);
  color: #fff;
  border-radius: 0 16px 10px 0;
  padding: .15rem .7rem .25rem;
  cursor: pointer;
}
.nav-row { padding-top: .35rem; padding-bottom: .6rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1;
}
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--tomato); }

.wrap { padding-top: .4rem; padding-bottom: 3rem; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.2rem; align-items: end; margin-bottom: 1.4rem; }
.kicker { font-family: var(--hand); color: var(--tomato); font-size: 1.5rem; margin: 0; transform: rotate(-1.5deg); }
.hero h1 { font-family: var(--hand); font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: .86; margin: .1rem 0 .6rem; letter-spacing: -0.03em; }
.scribble { display: block; width: min(280px, 70%); height: 14px; margin-top: -8px; }
.hero .entry-content { font-size: 1.08rem; max-width: 38rem; }
.doodle-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 1rem 1.1rem 1.1rem;
  transform: rotate(2.2deg);
  box-shadow: 6px 6px 0 var(--cobalt);
}
.doodle-card strong { font-family: var(--hand); font-size: 1.8rem; display: block; line-height: 1; }
.doodle-card p { margin: .35rem 0 0; }

.steps { margin: .4rem 0 1.6rem; position: relative; }
.steps h2 { font-family: var(--hand); font-size: 2.4rem; margin: 0 0 .2rem; }
.step-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: .8rem 0 0; padding: 0; }
.step-list li {
  background: #fff;
  border: 2px solid var(--ink);
  padding: .8rem .8rem .9rem;
  box-shadow: 4px 4px 0 var(--tape);
}
.step-list li:nth-child(2) { transform: rotate(1.2deg); }
.step-list li:nth-child(3) { transform: rotate(-1deg); margin-top: .4rem; }
.step-list li:nth-child(4) { transform: rotate(.6deg); }
.step-no { font-family: var(--hand); font-size: 2rem; color: var(--cobalt); line-height: 1; }
.step-list h3 { font-family: var(--hand); font-size: 1.45rem; margin: .1rem 0 .25rem; }
.step-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.section-title { font-family: var(--hand); font-size: 2.3rem; margin: 1.4rem 0 .6rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1.2rem; padding: 0; }
.pills a {
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .2rem .75rem .3rem;
  font-family: var(--hand);
  font-size: 1.3rem;
}
.pills a:hover { background: var(--blush, #ffd9cc); background: #ffd9cc; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.clip {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 #241c18;
  display: flex;
  flex-direction: column;
  position: relative;
}
.clip:nth-child(3n+2) { transform: rotate(-.6deg); }
.clip a { color: inherit; text-decoration: none; }
.clip-media { aspect-ratio: 16 / 10; background: #ffe7a8; display: block; border-bottom: 2px solid var(--ink); }
.clip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-fallback { height: 100%; display: grid; place-items: center; font-family: var(--hand); font-size: 2.6rem; }
.clip-body { padding: .8rem .9rem 1rem; }
.clip-kicker { margin: 0; color: var(--tomato); font-family: var(--hand); font-size: 1.2rem; }
.clip h2 { font-family: var(--hand); font-size: 1.7rem; line-height: 1; margin: .15rem 0 .35rem; }
.clip p { margin: 0; color: var(--muted); }

.pager { margin-top: 1rem; display: flex; gap: .4rem; }
.pager a, .pager span { border: 2px solid var(--ink); background: #fff; padding: .15rem .55rem; text-decoration: none; font-family: var(--hand); font-size: 1.2rem; color: var(--ink); }
.pager .current { background: var(--ink); color: #fff; }

.sheet { max-width: 44rem; background: #fff; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--cobalt); padding: 1.2rem 1.3rem 1.4rem; }
.sheet h1, .page-title { font-family: var(--hand); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: .9; margin: .1rem 0 .6rem; }
.meta { color: var(--muted); }
.entry-content h2, .entry-content h3 { font-family: var(--hand); line-height: 1; }
.entry-content p { margin: 0 0 1rem; }

.foot { background: var(--ink); color: #fff6ec; margin-top: 2rem; }
.foot a { color: #ffe38a; }
.foot-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 1.2rem; padding-top: 1.6rem; padding-bottom: 1.2rem; }
.foot h2 { font-family: var(--hand); font-size: 1.8rem; margin: 0 0 .3rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.legal { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem 1.2rem; color: #d9cbbd; font-size: .88rem; }

.empty { color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sheet form input, .sheet form textarea { font: inherit; border: 2px solid var(--ink); padding: .5rem .65rem; width: min(100%, 32rem); background: #fff; }
.sheet form button { font-family: var(--hand); font-size: 1.4rem; background: var(--tomato); color: #fff; border: 2px solid var(--ink); padding: .2rem .9rem .35rem; cursor: pointer; }

@media (max-width: 860px) {
  .hero, .step-list, .cards, .foot-row { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .nav-row { display: none; }
  .nav-row.is-open { display: block; }
  .doodle-card, .step-list li { transform: none; }
  .mark-script { font-size: 2.8rem; }
}
@media (max-width: 560px) {
  .top-row { flex-wrap: wrap; }
  .tools { width: 100%; }
  .search-form { flex: 1; }
  .search-form input[type="search"] { width: auto; flex: 1; min-width: 0; }
}
