/*
Theme Name: Apron Memories Tier1
Theme URI: https://apronmemories.com
Author: Linkgujodae
Author URI: https://example.com
Description: Home, Food, and Memory Archive theme for apronmemories.com. Unique logo, menu system, page structure, and broad English guide categories.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: apronmemories-com
*/

:root {
  --t1-primary: #0f172a;
  --t1-accent: #06b6d4;
  --t1-soft: #f8fafc;
  --t1-dark: #111827;
  --t1-ink: #111827;
  --t1-muted: #5b6678;
  --t1-line: rgba(15, 23, 42, 0.12);
  --t1-card: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

body.t1-theme-body {
  margin: 0;
  min-height: 100vh;
  background: var(--t1-soft);
  color: var(--t1-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.t1-theme-body a {
  color: inherit;
  text-decoration: none;
}

body.t1-theme-body img {
  max-width: 100%;
  height: auto;
}

.t1-site {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55)),
    var(--t1-soft);
}

.t1-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--t1-line);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
}

.t1-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  font-size: 18px;
  font-weight: 900;
}

.t1-logo-link img {
  width: 74px;
  height: 34px;
  object-fit: contain;
}

.t1-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.t1-nav a,
.t1-chip,
.t1-page-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--t1-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--t1-dark);
  font-size: 13px;
  font-weight: 800;
}

.t1-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: stretch;
  padding: clamp(46px, 7vw, 96px) clamp(18px, 4vw, 56px) 34px;
}

.t1-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--t1-primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t1-title {
  max-width: 780px;
  margin: 0;
  color: var(--t1-dark);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.t1-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--t1-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.t1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.t1-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--t1-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.t1-action.secondary {
  border: 1px solid var(--t1-line);
  background: #ffffff;
  color: var(--t1-dark);
}

.t1-feature {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  background: var(--t1-card);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

.t1-feature h2 {
  margin: 0;
  color: var(--t1-dark);
  font-size: 28px;
  line-height: 1.1;
}

.t1-feature p {
  margin: 0;
  color: var(--t1-muted);
  line-height: 1.65;
}

.t1-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.t1-mini-card,
.t1-topic-card,
.t1-post-card {
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  background: #ffffff;
}

.t1-mini-card {
  min-height: 112px;
  padding: 15px;
}

.t1-mini-card b,
.t1-topic-card b,
.t1-post-card b {
  display: block;
  color: var(--t1-dark);
  font-size: 15px;
  line-height: 1.25;
}

.t1-mini-card span,
.t1-topic-card span,
.t1-post-card span {
  display: block;
  margin-top: 8px;
  color: var(--t1-muted);
  font-size: 13px;
  line-height: 1.5;
}

.t1-section {
  padding: 30px clamp(18px, 4vw, 56px);
}

.t1-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.t1-section h2 {
  max-width: 720px;
  margin: 0;
  color: var(--t1-dark);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.t1-section-note {
  max-width: 440px;
  margin: 0;
  color: var(--t1-muted);
  line-height: 1.65;
}

.t1-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.t1-topic-card {
  min-height: 160px;
  padding: 18px;
}

.t1-topic-card i {
  display: flex;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--t1-soft);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.62);
}

.t1-post-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.t1-post-card {
  min-height: 170px;
  padding: 18px;
}

.t1-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--t1-line);
  color: var(--t1-muted);
  background: rgba(255,255,255,0.7);
  font-size: 14px;
}

.layout-grove .t1-hero,
.layout-orchard .t1-hero,
.layout-cabin .t1-hero {
  grid-template-columns: 0.9fr 1.1fr;
  background: radial-gradient(circle at 88% 18%, rgba(255,255,255,0.95), transparent 34%);
}

.layout-relay .t1-site,
.layout-smart .t1-site,
.layout-lantern .t1-site,
.layout-radar .t1-site {
  background: linear-gradient(135deg, var(--t1-dark), #0f172a 72%);
  color: #ffffff;
}

.layout-relay .t1-title,
.layout-relay .t1-feature h2,
.layout-relay .t1-section h2,
.layout-smart .t1-title,
.layout-smart .t1-feature h2,
.layout-smart .t1-section h2,
.layout-lantern .t1-title,
.layout-lantern .t1-feature h2,
.layout-lantern .t1-section h2,
.layout-radar .t1-title,
.layout-radar .t1-feature h2,
.layout-radar .t1-section h2 {
  color: #ffffff;
}

.layout-relay .t1-header,
.layout-smart .t1-header,
.layout-lantern .t1-header,
.layout-radar .t1-header {
  background: rgba(15,23,42,0.72);
}

.layout-relay .t1-feature,
.layout-smart .t1-feature,
.layout-lantern .t1-feature,
.layout-radar .t1-feature {
  background: rgba(255,255,255,0.08);
}

.layout-desk .t1-topic-grid,
.layout-press .t1-topic-grid,
.layout-paper .t1-topic-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.layout-atlas .t1-topic-grid,
.layout-civic .t1-topic-grid,
.layout-path .t1-topic-grid {
  grid-template-columns: 0.8fr 1.2fr 1fr;
}

.layout-ledger .t1-topic-grid,
.layout-journal .t1-topic-grid,
.layout-daily .t1-topic-grid {
  grid-template-columns: 1fr;
}

.layout-ledger .t1-topic-card,
.layout-journal .t1-topic-card,
.layout-daily .t1-topic-card {
  min-height: 118px;
}

.layout-vault .t1-feature-grid,
.layout-capsule .t1-feature-grid,
.layout-beacon .t1-feature-grid {
  grid-template-columns: 1fr;
}

.layout-search .t1-hero,
.layout-window .t1-hero {
  grid-template-columns: 1fr;
}

.layout-search .t1-feature,
.layout-window .t1-feature {
  max-width: 900px;
}

.layout-atelier .t1-section,
.layout-loom .t1-section,
.layout-shelf .t1-section {
  background: rgba(255,255,255,0.36);
}

.layout-wave .t1-topic-card:nth-child(2n),
.layout-harbor .t1-topic-card:nth-child(2n),
.layout-passage .t1-topic-card:nth-child(2n) {
  transform: translateY(12px);
}

.t1-page-shell {
  min-height: 100vh;
  background: var(--t1-soft);
}

.t1-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--t1-line);
  background: #ffffff;
}

.t1-page-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 950;
}

.t1-page-logo img {
  width: 74px;
  height: 34px;
  object-fit: contain;
}

.t1-page-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.t1-page-main {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 90px) 18px;
}

.t1-page-article {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(15,23,42,0.08);
}

.t1-page-article h1 {
  margin: 0 0 18px;
  color: var(--t1-dark);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.t1-page-body {
  color: #475569;
  font-size: 18px;
  line-height: 1.78;
}

.t1-page-body h2 {
  margin-top: 34px;
  color: var(--t1-dark);
}

.t1-page-body a {
  color: var(--t1-primary);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .t1-hero,
  .layout-grove .t1-hero,
  .layout-orchard .t1-hero,
  .layout-cabin .t1-hero {
    grid-template-columns: 1fr;
  }

  .t1-topic-grid,
  .layout-desk .t1-topic-grid,
  .layout-press .t1-topic-grid,
  .layout-paper .t1-topic-grid,
  .layout-atlas .t1-topic-grid,
  .layout-civic .t1-topic-grid,
  .layout-path .t1-topic-grid,
  .t1-post-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .t1-header,
  .t1-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .t1-nav,
  .t1-page-menu {
    justify-content: flex-start;
  }

  .t1-title {
    font-size: 42px;
  }

  .t1-feature-grid,
  .t1-topic-grid,
  .layout-desk .t1-topic-grid,
  .layout-press .t1-topic-grid,
  .layout-paper .t1-topic-grid,
  .layout-atlas .t1-topic-grid,
  .layout-civic .t1-topic-grid,
  .layout-path .t1-topic-grid,
  .t1-post-row {
    grid-template-columns: 1fr;
  }

  .layout-wave .t1-topic-card:nth-child(2n),
  .layout-harbor .t1-topic-card:nth-child(2n),
  .layout-passage .t1-topic-card:nth-child(2n) {
    transform: none;
  }
}
