/* Wild Notebook website: a page from a field notebook, in Primal Forest green and copper */
@font-face { font-family: "IM Fell English"; src: url(fonts/im-fell-english-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url(fonts/im-fell-english-400-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-600.woff) format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/caveat-700.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --forest: #174019; --forest-2: #1F5222; --copper: #B87747; --ember: #9A5B2C;
  --paper: #FBF8F1; --paper-line: #E7DFCF; --ink: #1B2A1C; --muted: #5C6656; --card: #FFFDF8;
  --display: "IM Fell English", Georgia, serif; --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--paper-line) 31px 32px); background-attachment: local; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 40px, 880px); margin-inline: auto; }

/* the banner: a sheet of green card, torn along the bottom */
.top { background: var(--forest); color: #F3ECDD; padding: 18px 0 64px; position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 22px) no-repeat, radial-gradient(14px 12px at 50% 0, #000 98%, #0000) bottom / 26px 22px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 22px) no-repeat, radial-gradient(14px 12px at 50% 0, #000 98%, #0000) bottom / 26px 22px repeat-x; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #F3ECDD; text-decoration: none; font-family: var(--display); font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { display: flex; gap: 16px; font-size: .95rem; }
.nav-links a { color: #E7D6B8; text-decoration: none; }
.nav-links a:hover { color: #fff; text-decoration: underline; }
.hero { padding: 46px 0 8px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.05; letter-spacing: .01em; color: #fff; }
.hero .by { margin: 8px 0 0; font-family: "Caveat", cursive; font-size: 1.6rem; color: #E9A36E; }
.hero p.lead { max-width: 34em; margin: 18px 0 0; font-size: 1.12rem; color: #E8E1CF; }

main { padding: 26px 0 50px; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--forest); margin: 34px 0 12px; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; margin: 22px 0 6px; }

/* the apps: cards pinned to the page */
.apps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 8px; }
.app { position: relative; background: var(--card); border: 1px solid #E6DCC8; border-radius: 6px; padding: 24px 22px 22px;
  box-shadow: 0 1px 0 #fff inset, 0 8px 22px rgb(60 40 10 / .10); }
.app:nth-child(1) { transform: rotate(-.6deg); } .app:nth-child(2) { transform: rotate(.5deg); } .app:nth-child(3) { transform: rotate(-.3deg); }
.app::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%) rotate(-2deg);
  background: rgb(214 196 160 / .65); border-left: 2px dotted rgb(255 255 255 / .5); border-right: 2px dotted rgb(255 255 255 / .5); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--forest); line-height: 1.15; }
.app .tag { margin: 2px 0 0; font-size: .85rem; color: var(--ember); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.app p { margin: 14px 0 0; }
.status { display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #E7F0E1; color: var(--forest); }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .92rem; }
.app.soon { background: transparent; border: 2px dashed #CFC2A6; box-shadow: none; display: grid; align-content: center; text-align: center; }
.app.soon::before { display: none; }
.app.soon h3 { font-size: 1.6rem; }
.app.soon .sketch { font-family: "Caveat", cursive; font-size: 1.35rem; color: var(--ember); margin-top: 8px; }

.note { background: var(--card); border-left: 4px solid var(--copper); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 18px 0; }
.small { font-size: .9rem; color: var(--muted); }

/* the privacy policy and other plain pages */
.doc { background: var(--card); border: 1px solid #E6DCC8; border-radius: 6px; padding: 26px clamp(18px, 4vw, 40px); box-shadow: 0 8px 22px rgb(60 40 10 / .08); }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.6rem); color: var(--forest); margin: 0 0 4px; line-height: 1.1; }
.doc h2 { font-size: 1.45rem; margin: 28px 0 8px; }
.doc ul { padding-left: 1.2em; } .doc li { margin: 6px 0; }

footer { border-top: 1px solid var(--paper-line); background: #F3EEE2; padding: 26px 0 34px; font-size: .92rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 560px) {
  .nav-links { gap: 12px; font-size: .88rem; }
  .brand span { display: none; }
  .app { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) { .app { transition: transform .25s; } .app:hover { transform: rotate(0) translateY(-2px); } }

.copy { width: 100%; margin: 0; }
.hero-link { color: #E9A36E; }
