/* ==========================================================================
   ilikecows.com — "Paper" style
   Light and minimal, on off-white paper with a faint grain, using the
   original site's monospace headings, a soft lavender and green.
   Change the colours in :root below.
   ========================================================================== */

:root {
  --bg: #f8f6f1;        /* warm off-white paper */
  --text: #1a1a1a;      /* headings and main text */
  --body: #2a2a2a;      /* long-form text in posts and policies */
  --muted: #4a4a4a;     /* intros */
  --soft: #5c5c5c;      /* summaries, secondary text */
  --label: #6b6b6b;     /* small labels, dates, footer */
  --quiet: #8a8a8a;     /* large decorative text only */
  --line: #e2ded4;      /* hairlines */
  --fill: #e9e6de;      /* code backgrounds */

  /* Lavender: two shades, because pale colours are hard to read when small */
  --lavender: #9873e0;       /* big text: // headings, "I also like cows.", taglines */
  --lavender-text: #7656c4;  /* small text: links */
  --lavender-hover: #5e40a8;
  --green: #167a4a;     /* dates, "Coming soon" and code */
  --green-fill: #e3efe6;
  --accent: var(--lavender-text);
  --accent-hover: var(--lavender-hover);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  /* A faint paper grain, drawn by the browser (no image file to download) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.28 0 0 0 0 0.24 0 0 0 0 0.18 0 0 0 0.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Page frame ---------- */

.site {
  max-width: 728px;           /* 680px of content plus the side padding */
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 36px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-logo {
  width: 32px;
  height: 32px;
  margin: -4px 0;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.site-nav a {
  color: var(--soft);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--label);
}
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Headings and intros ---------- */

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}
h1 .accent { color: var(--lavender); }

.intro {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.hero { padding: 48px 0 80px; }

/* The big waving cow above the home page headline */
.hero-logo {
  display: block;
  width: clamp(120px, 24vw, 160px);
  height: auto;
  margin: 0 0 24px -8px;     /* the artwork has a little space on its left */
}

/* ---------- Sections ---------- */

.section {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

/* Section and page headings in monospace, shown as "// Latest News".
   The "// " is added automatically, so just write "Latest News". */
.label {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--lavender);
}
.label::before {
  content: "// ";
  content: "// " / "";       /* screen readers skip the slashes */
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }

.empty-note { color: var(--soft); }

/* ---------- News list: date | title + summary ---------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 18px 0;
  text-decoration: none;
}
.post-list time {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--green);
}
.post-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.post-summary {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
  white-space: pre-line;     /* keeps line breaks written in the summary */
}
.post-list a:hover .post-title { color: var(--accent); }
.post-list + .text-link { margin-left: 132px; }

/* ---------- App rows (home page and /apps/) ---------- */

.app-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0;
  text-decoration: none;
}
.app-row + .app-row { margin-top: 20px; }
.app-icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
  font-size: 30px;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-text { flex: 1; min-width: 0; }
.app-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.app-name {
  font-size: 20px;
  font-weight: 700;
  transition: color .15s ease;
}
.app-row p {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--soft);
}
.app-row .arrow { flex: none; color: var(--lavender); }
.app-row:hover .app-name { color: var(--accent); }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-fill);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Subpages: news, posts, support, privacy ---------- */

.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.page-head .intro { margin-top: 18px; }
.post-date {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}

.back-link {
  display: inline-block;
  margin: 8px 0 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.back-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Long-form text (Markdown) */
.prose {
  padding: 0 0 32px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose h3 {
  margin: 28px 0 6px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}
.prose p { margin: 0 0 1.1em; }
.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--accent-hover); }
.prose blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--lavender);
  color: var(--soft);
}
.prose code {
  padding: .12em .38em;
  border-radius: 5px;
  background: var(--fill);
  color: var(--green);
  font-family: var(--mono);
  font-size: .88em;
}
.prose pre {
  overflow-x: auto;
  margin: 0 0 1.4em;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--fill);
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code { padding: 0; background: none; color: var(--text); }
.prose img,
.prose picture img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 12px;
}
.prose hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

/* ---------- App product page ---------- */

.app-hero { padding: 72px 0 56px; }
.app-hero .app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border-radius: 22px;
  font-size: 44px;
}
.tagline {
  margin: 10px 0 0;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--lavender);
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--label);
}

/* Two columns with hairlines: features and pricing */
.item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin: 0;
}
.item-list > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.item-list dt {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}
.item-list dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease;
}
.button:hover { border-color: var(--text); }
.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .site { padding: 0 20px; }
  .site-header { padding: 24px 0; }
  .hero { padding: 24px 0 56px; }
  .page-head { padding: 40px 0 32px; }
  .post-list a { grid-template-columns: 1fr; }
  .post-list time { padding-top: 0; }
  .post-list + .text-link { margin-left: 0; }
  .item-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
