/*
Theme Name: Ringbook
Theme URI: https://octopus.intelligres.com/
Author: Ring Octopus
Description: A field journal for the blue-ringed octopuses.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.4
Text Domain: ringbook
*/

:root {
  --sand: #f3eee4;
  --paper: #fbf8f2;
  --ink: #1b2430;
  --muted: #5e675f;
  --deep: #102833;
  --deep-2: #183848;
  --ring: #1c74c9;
  --glow: #79e4ff;
  --ochre: #c4842a;
  --line: rgba(27, 36, 48, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(121, 228, 255, 0.18), transparent 50%),
    var(--sand);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

a { color: var(--ring); text-underline-offset: 0.18em; }
a:hover { color: #0e4e8a; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

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

.site-header {
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #f4f7f6;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand:hover { color: white; }

.mark {
  width: 2.6rem;
  height: 2.6rem;
  position: relative;
  flex: none;
}

.mark i {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--glow);
  inset: 1px;
}

.mark i:nth-child(2) { inset: 0.42rem; border-color: #8ec8ff; }
.mark i:nth-child(3) {
  inset: 0.9rem;
  background: var(--ochre);
  border: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.site-tagline {
  margin: 0.25rem 0 0;
  color: rgba(244, 247, 246, 0.72);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-nav { display: flex; gap: 1.1rem; align-items: center; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: #f4f7f6;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--glow); }

.search-form { display: flex; }
.search-form input[type="search"] {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  width: 9.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.search-form input::placeholder { color: rgba(255, 255, 255, 0.65); }
.search-form input:focus { outline: 2px solid var(--glow); background: rgba(255, 255, 255, 0.2); }

.hero { position: relative; background: var(--deep); }
.hero img { width: 100%; max-height: 34rem; object-fit: cover; }
.hero figcaption {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 1.4rem 0.8rem;
  color: rgba(244, 247, 246, 0.75);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2.2rem 1.4rem 4rem; }
.wrap-wide { max-width: 44rem; }

.intro { margin-bottom: 2.2rem; }
.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ochre);
  margin: 0 0 0.6rem;
}
.intro h1, .page-title, .entry-title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.lede { font-size: 1.22rem; color: #2a3542; }

.journal { list-style: none; margin: 0; padding: 0; }
.journal article {
  padding: 1.35rem 0 1.45rem;
  border-top: 1px solid var(--line);
}
.meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.meta a { color: var(--ochre); text-decoration: none; }
.entry-title { font-size: 1.7rem; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--ring); }
.excerpt { margin: 0.4rem 0 0; color: #2d3844; }
.more {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links, .pagination, .posts-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.nav-links a, .posts-nav a { text-decoration: none; }

.single .entry-title, .page .entry-title { font-size: clamp(2rem, 4vw, 2.7rem); }
.entry-content > p:first-of-type { font-size: 1.2rem; }
.entry-content p { margin: 0 0 1.05rem; }
.entry-content h2 {
  font-size: 1.45rem;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.entry-content a { text-decoration-thickness: 1px; }

.post-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.comments { margin-top: 2.5rem; }
.comments h2 { font-size: 1.3rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-page input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: inherit;
}
.comment-form textarea { min-height: 8rem; }
.comment-form .submit, button, .button {
  background: var(--deep);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--deep-2); }

.site-footer {
  background: var(--deep);
  color: rgba(244, 247, 246, 0.78);
  font-family: var(--sans);
  font-size: 0.86rem;
}
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 1.6rem 1.4rem 2rem; }
.site-footer a { color: var(--glow); }
.site-footer p { margin: 0.3rem 0; }

.empty { color: var(--muted); }

@media (max-width: 640px) {
  .header-inner { padding: 0.9rem 1rem; }
  .site-title { font-size: 1.3rem; }
  .search-form { width: 100%; }
  .search-form input[type="search"] { width: 100%; }
  .hero img { max-height: 16rem; }
  .wrap { padding: 1.5rem 1rem 3rem; }
}
