/* Driftwood Coffee Co. — sample site by ACE Websites
   Scandinavian minimal: bone paper, charcoal ink, rust accent,
   Space Grotesk display + IBM Plex Mono labels, square corners. */

:root {
  --bone: #f3efe7;
  --paper: #fbf9f4;
  --ink: #221f1b;
  --muted: #7a7268;
  --line: #e0d9cb;
  --rust: #a8492a;
  --rust-dark: #8a3a20;
  --max: 64rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --bar-h: 3.5rem;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); }

::selection { background: #e8d3c4; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.mono, .mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mono-label {
  color: var(--rust);
  margin: 0 0 1rem;
}

.mono-label.gold { color: #d9a05b; }

.fine {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2rem;
}

/* Notice bar */

.notice {
  background: var(--ink);
  color: rgba(243, 239, 231, 0.75);
}

.notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
  font-size: 0.8rem;
}

.notice .mono { color: #d9a05b; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 231, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--rust);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bone) !important;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease !important;
}

.nav-cta:hover { background: var(--rust); color: var(--bone) !important; }

/* Buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--bone);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--rust); border-color: var(--rust); }

.btn-block { display: block; text-align: center; }

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-link:hover { color: var(--ink); text-decoration-color: var(--rust); }

/* Hero */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-copy .dek {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

/* Specs row */

.specs {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.specs-row > div {
  padding: 1.35rem 1.25rem;
  border-left: 1px solid var(--line);
}

.specs-row > div:first-child { border-left: none; padding-left: 0; }

.specs-row .mono { color: var(--muted); display: block; margin-bottom: 0.3rem; }

.specs-row b { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }

/* Sections */

.section { padding-block: clamp(3.25rem, 7.5vw, 5rem); }

.section.alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 2.25rem; }
.section-head h2 { margin-bottom: 0; }

/* Roast list */

.roast-list {
  border-top: 1px solid var(--line);
}

.roast {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.roast figure { margin: 0; }

.roast figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper);
}

.roast-no { color: var(--muted); margin: 0 0 0.4rem; }

.roast-body h3 { margin-bottom: 0.3rem; }

.notes {
  font-size: 0.9rem;
  color: var(--rust);
  margin: 0 0 0.6rem;
}

.roast-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 38rem;
}

.roast-buy { text-align: right; }

.price {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}

.price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.stock { color: var(--muted); margin: 0; }

/* Subscribe */

.section.dark {
  background: var(--ink);
  color: var(--bone);
}

.section.dark h2 { color: var(--bone); }

.section.dark p { color: rgba(243, 239, 231, 0.72); }

.sub-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.sub-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: rgba(243, 239, 231, 0.72);
}

.sub-points li {
  position: relative;
  padding-left: 1.4rem;
}

.sub-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #d9a05b;
}

.sub-card {
  background: var(--bone);
  color: var(--ink);
  padding: 1.85rem;
  border: 1px solid rgba(243, 239, 231, 0.1);
}

.sub-card .mono-label { color: var(--rust); }

.sub-price {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--ink) !important;
}

.sub-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.sub-detail {
  font-size: 0.95rem;
  color: var(--muted) !important;
  margin-bottom: 1.5rem !important;
}

/* Wholesale */

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.wholesale-grid figure { margin: 0; }

.wholesale-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--paper);
}

.wholesale-grid p { color: var(--muted); max-width: 34rem; }

.wholesale-list {
  margin: 1.5rem 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.wholesale-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.wholesale-list dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.wholesale-list dd { margin: 0; }

/* Visit */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.visit-grid p { color: var(--muted); max-width: 32rem; }

.visit-list {
  margin: 1.5rem 0 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.visit-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.visit-list dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.visit-list dd { margin: 0; }

.visit-list a { text-decoration: none; font-weight: 500; }
.visit-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.visit-photo { margin: 0; }

.visit-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(243, 239, 231, 0.6);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2.5rem;
}

.footer-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 0.3rem;
}

.footer-note { margin: 0; font-size: 0.68rem; color: rgba(243, 239, 231, 0.45); }

.footer-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(243, 239, 231, 0.6);
}

.footer-nav a:hover { color: var(--bone); }

.footer-copy { margin: 0; font-size: 0.68rem; color: rgba(243, 239, 231, 0.45); }

/* Sample bar (ACE Websites) */

.sample-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  color: rgba(243, 239, 231, 0.85);
  border-top: 2px solid var(--rust);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.sample-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bar-h);
  padding-block: 0.5rem;
}

.sample-bar p { margin: 0; }

.sample-bar b { color: #d9a05b; }

.sample-bar a {
  flex: none;
  color: var(--bone);
  background: var(--rust);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  transition: background 0.15s ease;
}

.sample-bar a:hover { background: var(--rust-dark); }

html.framed .sample-bar { display: none; }
html.framed body { padding-bottom: 0; }

/* Responsive */

@media (max-width: 900px) {
  .hero-grid, .sub-grid, .wholesale-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .specs-row { grid-template-columns: 1fr 1fr; }
  .specs-row > div:nth-child(3) { border-left: none; padding-left: 0; }
  .specs-row > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .roast { grid-template-columns: 8rem 1fr; }
  .roast-buy { grid-column: 2; text-align: left; }
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .notice-inner span:first-child { display: none; }
  .roast { grid-template-columns: 1fr; gap: 1rem; }
  .roast figure img { aspect-ratio: 16 / 9; }
  .roast-buy { grid-column: 1; }
  .sample-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  body { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
