/*
Theme Name: Quiet House
Theme URI: https://example.com/
Author: You
Description: Minimal mono editorial theme for writing-first landing pages.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: quiet-house
*/

:root{
  --bg: #f4f2ee;
  --text: #1f1f1f;
  --muted: rgba(31,31,31,0.62);
  --hairline: rgba(31,31,31,0.12);

  --max: 70ch;
  --pad: clamp(18px, 3vw, 42px);
  --gap: clamp(18px, 2.6vw, 36px);

  --font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
          "Courier New", monospace;
}

*{ box-sizing: border-box; }
html{ font-size: 16px; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
a:hover{ border-bottom-color: var(--muted); }

.site{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.wrap{
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: var(--pad);
}

.header{
  padding-top: calc(var(--pad) * 1.2);
  padding-bottom: var(--gap);
}
.brand{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.brand a{
  border-bottom: none;
}
.site-title{
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-tagline{
  font-size: 14px;
  color: var(--muted);
}

.nav{
  margin-top: var(--gap);
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.nav a{ border-bottom-color: transparent; }
.nav a:hover{ border-bottom-color: var(--hairline); }

.main{
  flex: 1;
  padding-top: var(--gap);
  padding-bottom: calc(var(--pad) * 1.2);
}

.post{
  margin: 0 0 calc(var(--gap) * 1.6) 0;
}
.post-meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-title{
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 14px 0;
  letter-spacing: 0.01em;
}
.post-title a{
  border-bottom: none;
}
.post-title a:hover{
  border-bottom: 1px solid var(--hairline);
}

.content{
  font-size: 17px;
}
.content p{ margin: 0 0 1.1em 0; }
.content h2, .content h3{
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2em 0 0.8em 0;
  color: var(--muted);
}
.content blockquote{
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 1px solid var(--hairline);
  color: var(--muted);
}
.content hr{
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2em 0;
}
.content img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em 0;
}

.footer{
  padding-top: var(--gap);
  padding-bottom: calc(var(--pad) * 1.2);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.archive-links{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.archive-links a{ border-bottom-color: transparent; }
.archive-links a:hover{ border-bottom-color: var(--hairline); }

.pager{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.pager a{ border-bottom-color: transparent; }
.pager a:hover{ border-bottom-color: var(--hairline); }
