/*
Theme Name: The Toaster
Theme URI: https://www.lawontoast.com/
Author: Law on Toast
Description: A warm, editorial WordPress theme for The Toaster, the Law on Toast blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.3
License: GPL-2.0-or-later
Text Domain: the-toaster
*/

:root {
  --lot-bg: #f6f1eb;
  --lot-bg-secondary: #eee7df;
  --lot-text: #1e1e1e;
  --lot-muted: #6b6b6b;
  --lot-accent: #c47a55;
  --lot-border: #d4cec7;
  --lot-white: #fffdf9;
  --lot-radius: 2px;
  --lot-shadow: 0 12px 32px rgba(30, 30, 30, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lot-bg);
  color: var(--lot-text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--lot-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lot-text); }

.lot-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.lot-site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 235, 0.96);
  border-bottom: 1px solid var(--lot-border);
  backdrop-filter: blur(10px);
}

.lot-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lot-text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lot-brand img { width: 32px; height: 32px; object-fit: contain; }

.lot-main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--lot-accent);
  border-radius: 999px;
  background: var(--lot-accent);
  color: var(--lot-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.lot-main-button:hover { background: var(--lot-text); border-color: var(--lot-text); color: var(--lot-white); }

.lot-main { min-height: 65vh; }
.lot-hero { padding: 84px 0 64px; border-bottom: 1px solid var(--lot-border); }
.lot-kicker {
  margin: 0 0 14px;
  color: var(--lot-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lot-hero h1,
.lot-page-title,
.lot-post-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
}
.lot-hero h1 { max-width: 780px; font-size: clamp(2.3rem, 6vw, 5rem); }
.lot-hero p { max-width: 650px; margin: 24px 0 0; color: var(--lot-muted); font-size: 1.12rem; }

.lot-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 56px 0 88px;
}
.lot-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--lot-white);
  border: 1px solid var(--lot-border);
  box-shadow: 0 3px 12px rgba(30, 30, 30, 0.03);
}
.lot-post-card:hover { box-shadow: var(--lot-shadow); }
.lot-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lot-bg-secondary); }
.lot-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.lot-post-card:hover .lot-card-image img { transform: scale(1.025); }
.lot-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--lot-bg-secondary), var(--lot-border)); }
.lot-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.lot-card-meta,
.lot-post-meta { color: var(--lot-muted); font-size: 0.76rem; letter-spacing: 0.04em; }
.lot-card-title { margin: 10px 0 12px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; line-height: 1.3; }
.lot-card-title a { color: var(--lot-text); text-decoration: none; }
.lot-card-title a:hover { color: var(--lot-accent); }
.lot-card-excerpt { margin: 0; color: var(--lot-muted); font-size: 0.95rem; }
.lot-read-more { margin-top: auto; padding-top: 22px; font-size: 0.82rem; font-weight: 700; }

.lot-page,
.lot-single { padding: 76px 0 100px; }
.lot-page-title { max-width: 820px; margin-bottom: 12px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
.lot-single-header { max-width: 860px; margin-bottom: 46px; }
.lot-post-title { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.lot-post-meta { margin-top: 22px; }
.lot-featured-image { margin: 0 0 48px; }
.lot-featured-image img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.lot-content { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.85; }
.lot-content h2,
.lot-content h3,
.lot-content h4 { margin: 2.2em 0 0.65em; font-family: "Libre Baskerville", Georgia, serif; line-height: 1.3; }
.lot-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--lot-accent); color: var(--lot-muted); font-family: "Libre Baskerville", Georgia, serif; font-style: italic; }
.lot-content figure { margin: 2em 0; }
.lot-content img { border: 1px solid var(--lot-border); }
.lot-post-footer { max-width: 760px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--lot-border); }

.lot-site-footer { padding: 48px 0 28px; border-top: 1px solid var(--lot-border); }
.lot-footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; }
.lot-footer-title { margin: 0 0 12px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.2rem; }
.lot-footer-copy { max-width: 360px; margin: 0; color: var(--lot-muted); font-size: 0.9rem; }
.lot-footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.lot-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 18px; font-size: 0.88rem; }
.lot-footer-links a { color: var(--lot-muted); text-decoration: none; }
.lot-footer-links a:hover { color: var(--lot-accent); }
.lot-footer-button { padding: 0; border: 0; background: transparent; color: var(--lot-muted); font: inherit; font-size: inherit; cursor: pointer; }
.lot-footer-button:hover { color: var(--lot-accent); }
.lot-footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(212, 206, 199, 0.65); color: var(--lot-muted); font-size: 0.76rem; }

.lot-consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(460px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid var(--lot-border);
  background: var(--lot-white);
  box-shadow: var(--lot-shadow);
}
.lot-consent-banner p { margin: 0 0 14px; color: var(--lot-muted); font-size: 0.9rem; }
.lot-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lot-consent-actions button { padding: 9px 14px; border: 1px solid var(--lot-border); border-radius: 999px; background: transparent; color: var(--lot-text); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.lot-consent-actions .lot-consent-accept { border-color: var(--lot-accent); background: var(--lot-accent); color: var(--lot-white); }
.lot-consent-actions button:hover { border-color: var(--lot-text); }

.lot-pagination { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 12px; }
.lot-pagination a { font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .lot-shell { width: min(100% - 28px, 680px); }
  .lot-header-inner { min-height: 68px; }
  .lot-main-button { padding: 9px 12px; font-size: 0.72rem; }
  .lot-post-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; }
  .lot-hero { padding: 58px 0 44px; }
  .lot-page, .lot-single { padding: 52px 0 70px; }
  .lot-footer-grid { flex-direction: column; gap: 24px; }
  .lot-footer-actions { align-items: flex-start; }
  .lot-footer-links { justify-content: flex-start; }
}
