/* frumple.co.uk — warm, crumpled, characterful */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,700;12..96,800&family=DM+Mono:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Variables ── */
:root {
  --cream:     #e8d8b4;
  --cream-mid: #d9c89a;
  --ink:       #1c1a24;
  --ink-soft:  #3d3848;
  --ochre:     #c48c34;
  --rust:      #b2482c;
  --warm-mid:  #78694c;
  --warm-light:#a89878;
  --card-bg:   #ede0bc;
  --radius:    12px;
  --max-width: 960px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  /* subtle paper grain texture via CSS noise */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

/* ── Layout ── */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-nav a {
  color: var(--warm-mid);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--rust); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 4rem 0 2.5rem;
  position: relative;
}

.hero__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-light);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  max-width: 700px;
}

.hero__title em {
  font-style: normal;
  color: var(--rust);
  position: relative;
}

/* Wobbly underline on em via SVG background */
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6'%3E%3Cpath d='M0 3 Q10 1 20 3 Q30 5 40 3 Q50 1 60 3 Q70 5 80 3 Q90 1 100 3 Q110 5 120 3 Q130 1 140 3 Q150 5 160 3 Q170 1 180 3 Q190 5 200 3' stroke='%23c48c34' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x center;
  background-size: 200px 6px;
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── Wobbly divider ── */
.divider {
  width: 100%;
  height: 12px;
  margin: 0.5rem 0 2.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='12'%3E%3Cpath d='M0 6 Q30 2 60 6 Q90 10 120 6 Q150 2 180 6 Q210 10 240 6 Q270 2 300 6 Q330 10 360 6 Q390 2 420 6 Q450 10 480 6 Q510 2 540 6 Q570 10 600 6 Q630 2 660 6 Q690 10 720 6 Q750 2 780 6 Q810 10 840 6 Q870 2 900 6 Q930 10 960 6 Q990 2 1020 6 Q1050 10 1080 6 Q1110 2 1140 6 Q1170 10 1200 6' stroke='%23c48c34' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3C/svg%3E") repeat-x center;
  background-size: 1200px 12px;
  opacity: 0.6;
}

/* ── Section heading ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-mid);
}

/* ── Project cards grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 4rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: 0 8px 24px rgba(28,26,36,0.10);
  border-color: var(--ochre);
}

/* Faint crumple corner decoration */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 32px;
  background: linear-gradient(225deg, var(--cream-mid) 50%, transparent 50%);
  border-radius: 0 var(--radius) 0 0;
}

.project-card__tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.project-card__desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.project-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  font-family: 'DM Mono', monospace;
}
.project-card__link::after { content: ' →'; }

/* ── "Coming soon" wip badge ── */
.badge-wip {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream-mid);
  color: var(--warm-mid);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--cream-mid);
  padding: 2rem 0;
  font-size: 0.78rem;
  color: var(--warm-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 2.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
