/* Landon the Service Dog - theme */

/* ---------- Tokens ---------- */

:root {
  --bg-main: #faf5ec;
  --bg-card: #ffffff;
  --bg-chip: #f2e4cf;

  --text-main: #2b2117;
  --text-soft: #5f4f40;
  --text-muted: #8b7c6d;

  --accent-primary: #1f8a9e;   /* harness teal */
  --accent-primary-soft: #d4eef2;
  --accent-gold: #c7923a;      /* working dog patch trim */
  --accent-warm: #d96c3f;

  --border-soft: #e2d5c4;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMonoRegular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 2% 0, rgba(255, 255, 255, 0.8) 0, transparent 54%),
    radial-gradient(circle at 100% 120%, rgba(241, 216, 188, 0.9) 0, transparent 55%),
    #f7efe4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Light paw print pattern in background on large screens */

body::before {
  content: "🐾";
  position: fixed;
  font-size: 5rem;
  opacity: 0.06;
  bottom: 3rem;
  right: 5%;
  pointer-events: none;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--accent-primary-soft), #ffe9c8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.site-header .wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-title-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0, #f4e6d5 46%, #e4cfb6 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-badge span {
  font-size: 1.7rem;
  transform: translateY(1px);
}

.site-title-text h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-title-text h1 a {
  text-decoration: none;
  color: var(--text-main);
}

.tag {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------- Nav ---------- */

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* ---------- Home layout ---------- */

.home {
  padding: 2rem 0 3rem;
}

.intro {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  position: relative;
}

.intro::before {
  content: "Working team in training and in life.";
  position: absolute;
  top: -0.9rem;
  left: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(31, 138, 158, 0.4);
}

/* Post list container */

.post-list {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

/* ---------- Post cards ---------- */

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: "🐾";
  position: absolute;
  font-size: 3rem;
  right: -0.5rem;
  bottom: -0.7rem;
  opacity: 0.09;
}

.post-card .thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: stretch;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.post-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.post-card-title {
  margin: 0;
  font-size: 1.2rem;
}

.post-card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent-primary);
}

.post-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card-excerpt {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.post-card-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--accent-primary);
  font-weight: 600;
}

.post-card-link::after {
  content: "›";
  padding-left: 0.2rem;
}

/* ---------- Generic content pages ---------- */

.page {
  padding: 2rem 0 3rem;
}

.page-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.page-inner h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

.page-inner h2 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}

.page-inner p,
.page-inner li {
  font-size: 0.98rem;
  color: var(--text-soft);
}

.page-inner ul {
  padding-left: 1.1rem;
}

/* ---------- Post Hero Images ---------- */

.hero-img {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img img {
  width: 100%;
  max-width: 780px;   /* keeps large images nicely sized */
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-img figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  max-width: 760px;
}

/* Simple callout for important notes */

.callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent-primary-soft);
  border-left: 4px solid var(--accent-primary);
  font-size: 0.9rem;
}

/* ---------- Forms (contact) ---------- */

.form {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-row input,
.form-row textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fdf8f0;
  resize: vertical;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  background: #fffaf3;
}

.button-row {
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 138, 158, 0.4);
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: #187488;
  outline: none;
  box-shadow: 0 10px 24px rgba(31, 138, 158, 0.5);
}

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

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 0 2.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
}

.site-footer .wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card .thumb {
    max-height: 220px;
  }
}

@media (max-width: 520px) {
  .wrapper {
    padding: 1.2rem;
  }

  .intro {
    padding: 1.1rem 1.2rem;
  }

  .page-inner {
    padding: 1.4rem 1.5rem;
  }
}
