/* Design G — Almond Rest
   Warm amber/cream palette. Italiana display + Karla body.
   Layout: 3-column masonry grid with polaroid-style image frames
   (white border, soft drop shadow, subtle rotation on alternate cards). */

:root {
  --almond:    #d9b889;
  --almond-dark:#b8915d;
  --cream:     #f5ede1;
  --cream-deep:#ebe0cc;
  --walnut:    #6b4423;
  --walnut-dark:#4a2e16;
  --ink:       #2e231a;
  --ink-soft:  #5a4632;
  --ink-faint: #9c8770;
  --line:      rgba(107, 68, 35, 0.18);
  --line-soft: rgba(107, 68, 35, 0.10);
  --display:   'Italiana', Georgia, serif;
  --body:      'Karla', -apple-system, sans-serif;
  --serif:     'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at top right, rgba(217, 184, 137, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(217, 184, 137, 0.12), transparent 50%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(245, 237, 225, 0.85);
  backdrop-filter: blur(4px);
}
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--walnut);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
  font-weight: 500;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--walnut); }
.site-nav .issue {
  font-family: var(--display);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--almond-dark);
}

/* Home hero — text-led, image as polaroid below */
.home-hero {
  padding: 80px 0 50px;
  text-align: center;
}
.home-hero .kicker {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--almond-dark);
  margin-bottom: 26px;
}
.home-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 84px;
  line-height: 1.04;
  letter-spacing: 0.5px;
  color: var(--walnut);
  margin: 0 auto 26px;
  max-width: 880px;
}
.home-hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}
.home-hero-image {
  margin: 60px auto 60px;
  max-width: 880px;
  padding: 0 40px;
}
.home-hero-image figure {
  background: #fff;
  padding: 18px 18px 60px;
  box-shadow: 0 24px 60px -32px rgba(74, 46, 22, 0.45);
  transform: rotate(-1deg);
  position: relative;
}
.home-hero-image figure::after {
  content: "Almond Rest · the studio room";
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--walnut);
  letter-spacing: 1px;
}
.home-hero-image img {
  width: 100%; height: 460px; object-fit: cover;
  filter: sepia(0.18) saturate(0.92) contrast(1.05);
}

.cat-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 30px 0 80px;
  padding: 0 40px;
}
.cat-nav a {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--walnut);
  background: var(--cream-deep);
  padding: 11px 22px;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.cat-nav a:hover {
  background: var(--almond);
  color: #fff;
}

/* Category sections */
.cat-section { padding: 70px 0; }
.cat-section + .cat-section { border-top: 1px solid var(--line-soft); }

.cat-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 36px;
  margin-bottom: 60px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--almond);
}
.cat-header-text { max-width: 640px; }
.cat-header .cat-number {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--almond-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.cat-header h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.08;
  color: var(--walnut);
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
.cat-header .cat-lede {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cat-header .cat-see-all {
  flex-shrink: 0;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--walnut);
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 4px;
  font-weight: 600;
}

/* Polaroid masonry grid (3 columns desktop) */
.card-grid {
  columns: 3;
  column-gap: 40px;
}
.card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  background: #fff;
  padding: 14px 14px 26px;
  margin-bottom: 50px;
  box-shadow: 0 14px 36px -22px rgba(74, 46, 22, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:nth-child(3n+1) { transform: rotate(-0.8deg); }
.card:nth-child(3n+2) { transform: rotate(0.6deg); }
.card:nth-child(3n+3) { transform: rotate(-0.3deg); }
.card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 20px 50px -22px rgba(74, 46, 22, 0.5);
}

.card-image {
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--cream-deep);
}
.card-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.95) contrast(1.04);
}
.card-meta {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--almond-dark);
  margin-bottom: 8px;
  padding: 0 8px;
  font-weight: 600;
}
.card-meta .dot { color: var(--ink-faint); margin: 0 6px; }
.card-meta .date { color: var(--ink-faint); font-weight: 400; }
.card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.16;
  color: var(--walnut);
  margin-bottom: 10px;
  padding: 0 8px;
  letter-spacing: 0.3px;
}
.card-subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 0 8px;
}

/* Article page */
.article-hero {
  padding: 60px 0 0;
  text-align: center;
}
.article-hero .badge-row {
  display: flex; justify-content: center; gap: 14px; align-items: center;
  margin-bottom: 28px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}
.article-hero .cat-badge {
  background: var(--almond);
  color: #fff;
  padding: 5px 14px;
  font-weight: 600;
  border-radius: 2px;
}
.article-hero .date-badge { color: var(--ink-faint); }
.article-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0.4px;
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--walnut);
}
.article-hero .subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
}
.article-hero .byline {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 50px;
}
.article-hero .byline .name { color: var(--walnut); font-weight: 600; }

.article-hero-image {
  max-width: 980px;
  margin: 0 auto 60px;
  padding: 0 40px;
}
.article-hero-image figure {
  background: #fff;
  padding: 20px 20px 30px;
  box-shadow: 0 28px 70px -36px rgba(74, 46, 22, 0.5);
}
.article-hero-image img {
  width: 100%; height: 500px; object-fit: cover;
  filter: sepia(0.16) saturate(0.95) contrast(1.04);
}

.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.86;
  color: var(--ink);
}
.article-body p { margin-bottom: 24px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 84px;
  line-height: 0.84;
  padding: 10px 16px 0 0;
  color: var(--walnut);
  font-weight: 400;
}
.article-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0.3px;
  color: var(--walnut);
  margin: 50px 0 22px;
  text-align: center;
}
.article-body h2::after {
  content: "·  ·  ·";
  display: block;
  color: var(--almond);
  font-size: 14px;
  letter-spacing: 4px;
  margin-top: 14px;
}
.article-body blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  line-height: 1.32;
  color: var(--walnut);
  border: none;
  padding: 30px 0;
  margin: 44px 0;
  text-align: center;
  letter-spacing: 0.4px;
}
.article-body blockquote::before {
  content: "“";
  display: block;
  font-size: 60px;
  color: var(--almond);
  line-height: 0.4;
  margin-bottom: 12px;
}
.article-body figure { margin: 50px 0; text-align: center; }
.article-body figure img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.95);
}

.article-end {
  text-align: center;
  margin: 60px 0 20px;
  color: var(--almond);
  font-size: 18px;
  letter-spacing: 14px;
}
.article-signoff {
  display: flex; align-items: center; gap: 22px;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin: 60px 0;
}
.article-signoff img {
  width: 78px; height: 78px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px -8px rgba(74, 46, 22, 0.4);
}
.article-signoff .name {
  font-family: var(--display);
  font-size: 24px;
  color: var(--walnut);
}
.article-signoff .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
}

.related {
  padding: 60px 0 50px;
  border-top: 2px solid var(--almond);
  margin-top: 40px;
}
.related-label {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--almond-dark);
  text-align: center;
  margin-bottom: 36px;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related-card {
  background: #fff;
  padding: 12px 12px 22px;
  box-shadow: 0 10px 26px -16px rgba(74, 46, 22, 0.35);
}
.related-card img {
  width: 100%; height: 180px; object-fit: cover;
  filter: sepia(0.16) saturate(0.95);
}
.related-card .related-cat {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--almond-dark);
  margin: 14px 8px 6px;
  font-weight: 600;
}
.related-card h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  color: var(--walnut);
  padding: 0 8px;
}

/* About page */
.about-wrap { padding: 70px 0 90px; }
.about-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.about-hero .portrait {
  background: #fff;
  padding: 16px 16px 50px;
  box-shadow: 0 18px 50px -28px rgba(74, 46, 22, 0.45);
  transform: rotate(-1.5deg);
  position: relative;
}
.about-hero .portrait::after {
  content: "the author";
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--walnut);
}
.about-hero .portrait img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.92);
}
.about-hero .kicker {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--almond-dark);
  margin-bottom: 18px;
  font-weight: 600;
}
.about-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.06;
  color: var(--walnut);
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}
.about-hero .city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}
.about-body {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.84;
  color: var(--ink);
}
.about-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  margin: 44px 0 18px;
  color: var(--walnut);
  letter-spacing: 0.3px;
}
.about-body p { margin-bottom: 22px; }

/* Footer */
.site-footer {
  margin-top: 90px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--cream-deep);
  text-align: center;
}
.site-footer .footer-mark { margin: 0 auto 18px; width: 38px; height: 38px; }
.site-footer .footer-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--walnut);
}
.site-footer .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin: 8px 0 22px;
}
.site-footer .footer-links {
  display: flex; justify-content: center; gap: 22px;
  margin-bottom: 18px;
}
.site-footer .footer-links a {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-footer .footer-links a:hover { color: var(--walnut); }
.site-footer .copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-faint);
}

/* Responsive */
@media (max-width: 1000px) {
  .home-hero h1 { font-size: 60px; }
  .card-grid { columns: 2; }
}
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .home-hero h1 { font-size: 44px; }
  .home-hero-image img { height: 320px; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cat-header h2 { font-size: 42px; }
  .card-grid { columns: 1; column-gap: 0; }
  .article-hero h1 { font-size: 40px; }
  .article-hero-image img { height: 320px; }
  .article-body { font-size: 17.5px; }
  .article-body h2 { font-size: 28px; }
  .article-body blockquote { font-size: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .about-hero h1 { font-size: 44px; }
}
@media (max-width: 480px) {
  .home-hero h1 { font-size: 36px; }
  .cat-header h2 { font-size: 34px; }
  .article-hero h1 { font-size: 32px; }
  .article-hero .subhead { font-size: 18px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; letter-spacing: 1.4px; }
}
