:root {
  --ink: #2b1b13;
  --ink-soft: #5f493a;
  --forest: #183629;
  --forest-light: #2e5a40;
  --moss: #68784d;
  --parchment: #f3e4bf;
  --paper: #fff7df;
  --cream: #f8edcf;
  --amber: #e9a63a;
  --gold: #f2c35c;
  --copper: #a84928;
  --oxblood: #6d241d;
  --wood: #3a1e13;
  --line: #c9aa78;
  --shadow: 0 18px 50px rgba(47, 25, 14, .18);
  --small-shadow: 0 8px 22px rgba(47, 25, 14, .13);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Nunito Sans", sans-serif; line-height: 1.6; background-image: linear-gradient(rgba(98,61,31,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(98,61,31,.025) 1px,transparent 1px),radial-gradient(circle at 30% 20%,rgba(255,255,255,.6),transparent 35%); background-size: 26px 26px,26px 26px,auto; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1,h2,h3 { font-family: "Bree Serif",Georgia,serif; font-weight: 400; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.8rem,6vw,5.8rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem,4vw,3.35rem); letter-spacing: -.018em; }
h3 { font-size: 1.45rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .75rem 1rem; z-index: 100; }
.site-header { min-height: 82px; padding: .7rem max(4vw,1.25rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #fff5d8; background: linear-gradient(rgba(29,13,8,.22),rgba(29,13,8,.22)),repeating-linear-gradient(93deg,#3b1d12 0,#4a2819 18%,#382017 36%,#482719 55%,#32190f 74%,#472619 100%); border-bottom: 3px solid #b77931; box-shadow: 0 5px 22px rgba(35,17,10,.35); position: sticky; top: 0; z-index: 30; }
.site-header::after { content: ""; position: absolute; inset: auto 0 -7px; height: 7px; background: repeating-linear-gradient(90deg,#59321d 0 70px,#6d4024 70px 72px); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #f1c05b; border-radius: 50% 50% 42% 42%; background: var(--forest); color: var(--gold); box-shadow: inset 0 0 0 3px rgba(255,245,216,.1),0 3px 10px rgba(0,0,0,.28); font: 400 1.65rem "Bree Serif",serif; }
.brand>span:last-child { display: grid; line-height: 1.05; }
.brand b { font: 400 1.38rem "Bree Serif",serif; letter-spacing: .02em; }
.brand small { color: #d9c39b; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: .28rem; }
.site-header nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a,.nav-button { color: #f9e9c4; font: 800 .84rem "Nunito Sans",sans-serif; text-decoration: none; background: transparent; border: 1px solid transparent; border-radius: 999px; padding: .58rem .78rem; cursor: pointer; }
.site-header nav a:hover,.nav-button:hover { color: #fff; border-color: rgba(242,195,92,.45); background: rgba(255,255,255,.06); }
.inline-form { display: inline; }
.tavern-hero { min-height: min(700px,calc(100vh - 82px)); position: relative; isolation: isolate; display: flex; align-items: center; background: #25130d url("../img/tavern-hero.5bd300a55cfc.webp") center center/cover no-repeat; color: #fff8e7; border-bottom: 7px solid #3c1d12; box-shadow: inset 0 -80px 100px rgba(26,12,6,.25); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(18,9,6,.92) 0%,rgba(24,11,7,.76) 35%,rgba(25,12,8,.22) 64%,rgba(20,9,5,.04) 100%); }
.hero-content { width: min(700px,88%); margin-left: max(5vw,1.25rem); padding: 5rem 0 7rem; text-shadow: 0 3px 20px rgba(0,0,0,.7); }
.hero-content h1 { font-size: clamp(3.3rem,6.5vw,6.5rem); }
.hero-content h1 em { color: #f2c35c; font-style: normal; }
.hero-content>p { max-width: 630px; font-size: 1.22rem; color: #f4e2bd; margin: 1.35rem 0 2rem; }
.hero-sign { position: absolute; left: max(5vw,1.25rem); bottom: 1.2rem; margin: 0; color: #d4bc90; font: 400 .85rem "Bree Serif",serif; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .73rem; font-weight: 800; color: var(--copper); margin: 0 0 .65rem; }
.eyebrow.light { color: #f1c05b; }
.search { max-width: 620px; background: rgba(42,21,13,.86); border: 1px solid rgba(242,195,92,.45); padding: 1rem; border-radius: 14px; box-shadow: 0 16px 42px rgba(0,0,0,.35); backdrop-filter: blur(8px); text-shadow: none; }
.search label { display: block; margin: 0 0 .55rem; color: #fff2d3; font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.search-row { display: flex; gap: .6rem; }
.search input { min-width: 0; flex: 1; border-color: #e4c58c; background: #fff9e7; }
.button { border: 1px solid #c37c24; background: linear-gradient(#f4c65f,#e69b31); color: #2a180e; padding: .82rem 1.15rem; border-radius: 8px; font: 800 .9rem "Nunito Sans",sans-serif; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 0 #7b401b,0 8px 16px rgba(47,25,14,.15); transition: transform .15s,filter .15s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 #7b401b; }
.button.small { padding: .62rem .9rem; }
.text-link { font-weight: 800; color: var(--copper); text-underline-offset: .2em; }
.feed-section,.community-table,.profile-shell { max-width: 1400px; margin: 0 auto; padding: 5.5rem max(5vw,1.25rem) 7rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; }
.section-heading h2::after { content: ""; display: block; width: 90px; height: 5px; margin-top: .65rem; background: linear-gradient(90deg,var(--copper),var(--amber),transparent); border-radius: 99px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.recipe-card { background: var(--paper); border: 1px solid #c9a66c; border-radius: 12px 12px 20px 20px; overflow: hidden; box-shadow: var(--small-shadow); transition: transform .2s,box-shadow .2s; position: relative; }
.recipe-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(123,75,35,.12); border-radius: 7px 7px 14px 14px; pointer-events: none; }
.recipe-card:hover { transform: translateY(-6px) rotate(-.15deg); box-shadow: var(--shadow); }
.card-image-wrap { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #82785d; border-bottom: 4px solid #6e3c22; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.recipe-card:hover img { transform: scale(1.035); }
.time-chip { position: absolute; right: .8rem; bottom: .8rem; background: #f7e6b8; color: #372013; border: 1px solid #a86f2c; border-radius: 6px; padding: .42rem .68rem; font-size: .75rem; font-weight: 800; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.card-copy { padding: 1.3rem 1.35rem 1.45rem; position: relative; z-index: 1; }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--moss); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.card-copy h3 { margin: .75rem 0 .5rem; }
.card-copy h3 a { text-decoration: none; }
.card-copy p { color: var(--ink-soft); margin: .5rem 0 1rem; }
.author-link { font-weight: 800; font-size: .82rem; color: var(--copper); }
.image-fallback { height: 100%; display: grid; place-items: center; align-content: center; background: linear-gradient(145deg,#163328,#56683e); color: var(--cream); }
.image-fallback span { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; }
.image-fallback b { font: 400 5rem "Bree Serif",serif; color: var(--gold); }
.empty-state { text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 4rem; background: rgba(255,247,223,.75); }
.empty-state>span { font-size: 2.5rem; }
.empty-state h3 { margin: .6rem; }
.standalone { max-width: 700px; margin: 7rem auto; }
.messages { position: fixed; top: 100px; right: 1rem; z-index: 40; width: min(380px,calc(100% - 2rem)); }
.message { padding: 1rem 1.2rem; border: 1px solid #a86f2c; border-radius: 9px; background: var(--forest); color: white; box-shadow: var(--shadow); margin-bottom: .6rem; }
.message.error { background: #7e2e27; }
.recipe-page { padding-bottom: 3rem; }
.review-banner { max-width: 1400px; margin: 1.5rem auto 0; background: #fff1c7; border: 1px solid #c78d38; padding: .9rem 1.2rem; border-radius: 8px; }
.recipe-hero { max-width: 1400px; margin: 0 auto; padding: clamp(2.5rem,5vw,5rem) max(5vw,1.25rem); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr); gap: clamp(2.5rem,7vw,7rem); align-items: center; }
.recipe-hero-image { aspect-ratio: 4/3; border-radius: 10px 10px 60px 10px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #f6dfab; outline: 1px solid #ac804e; }
.recipe-hero-image img { height: 100%; width: 100%; object-fit: cover; }
.recipe-heading .dek { font-size: 1.2rem; color: var(--ink-soft); margin: 1.5rem 0; }
.author-block { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin: 1.5rem 0; }
.author-block small,.author-block b { display: block; }
.avatar { width: 46px; height: 46px; border-radius: 50% 50% 45% 45%; display: grid; place-items: center; background: var(--forest); color: var(--gold); border: 2px solid #bd8d47; font: 400 1.2rem "Bree Serif",serif; }
.recipe-stats { display: grid; grid-template-columns: repeat(4,1fr); border-top: 2px solid var(--line); padding-top: 1.2rem; gap: .7rem; }
.recipe-stats div { border-right: 1px solid var(--line); }
.recipe-stats div:last-child { border: 0; }
.recipe-stats dt { text-transform: uppercase; font-size: .66rem; letter-spacing: .1em; color: var(--moss); font-weight: 800; }
.recipe-stats dd { margin: .15rem 0 0; font-weight: 800; }
.recipe-body { max-width: 1150px; margin: 1rem auto 6rem; padding: 0 max(5vw,1.25rem); display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(2rem,7vw,7rem); align-items: start; }
.card-panel { background: linear-gradient(145deg,#183629,#244b35); color: white; padding: 2rem; border: 3px solid #c08b3d; border-radius: 10px 10px 45px 10px; box-shadow: var(--shadow); }
.card-panel .eyebrow { color: var(--gold); }
.ingredients ul { padding: 0; margin: 1.5rem 0 0; list-style: none; }
.ingredients li { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.method ol { padding: 0; list-style: none; }
.method li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.method li>span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #352012; font-weight: 800; border: 1px solid #b87527; }
.method li p { margin: .4rem 0; }
.community-table { padding-top: 1rem; }
.action-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 2rem 0; }
.action-tabs details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; box-shadow: var(--small-shadow); }
.action-tabs summary { font-family: "Bree Serif",serif; font-size: 1.15rem; cursor: pointer; }
.stacked-form { margin-top: 1rem; }
.stacked-form>div,.paper-form>div { margin-bottom: 1rem; }
.stacked-form label,.paper-form label { font-weight: 800; display: block; margin-bottom: .35rem; }
.notes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.notes-grid h3 { padding-bottom: .7rem; border-bottom: 3px solid var(--amber); }
.note { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.note p { margin: .35rem 0; }
.stars { float: right; color: var(--copper); font-weight: 800; }
.cook-photo { border-radius: 8px; margin-top: .75rem; }
.login-prompt { background: var(--paper); border: 1px solid var(--line); padding: 1rem; border-radius: 8px; margin: 1rem 0; }
.form-shell { max-width: 1080px; margin: 0 auto; padding: clamp(4rem,9vw,8rem) max(5vw,1.25rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,8vw,7rem); align-items: start; position: relative; }
.form-shell.wide { max-width: 1220px; }
.form-shell h1 { font-size: clamp(2.8rem,5vw,4.7rem); }
.form-shell>div:first-child { position: sticky; top: 130px; }
.form-shell>div:first-child::after { content: ""; display: block; width: 100px; height: 6px; margin-top: 1.6rem; background: linear-gradient(90deg,var(--copper),var(--amber)); border-radius: 99px; }
.paper-form { background: var(--paper); border: 1px solid #c5a46f; padding: clamp(1.5rem,4vw,3rem); border-radius: 10px 10px 35px 10px; box-shadow: var(--shadow); }
input,textarea,select { width: 100%; border: 1px solid #a8895c; border-radius: 7px; padding: .8rem .9rem; background: #fffdf6; color: var(--ink); font: inherit; }
input[type="checkbox"] { width: auto; margin-right: .5rem; }
textarea { resize: vertical; }
input:focus,textarea:focus,select:focus { outline: 3px solid rgba(233,166,58,.35); border-color: var(--copper); }
.helptext { display: block; color: #76614e; font-size: .78rem; margin-top: .25rem; }
.errorlist { color: #8b3028; padding-left: 1.1rem; }
.form-note { font-size: .82rem; color: #76614e; }
.profile-shell { padding-top: 5rem; }
.profile-card { display: flex; gap: 1.5rem; align-items: center; padding: 2.2rem; background: linear-gradient(135deg,var(--wood),#5c301c); color: white; border: 2px solid #b27632; border-radius: 10px 10px 55px 10px; margin-bottom: 4rem; box-shadow: var(--shadow); }
.profile-card h1 { font-size: 3rem; }
.profile-card .eyebrow { color: var(--gold); }
.large-avatar { width: 88px; height: 88px; font-size: 2.3rem; background: var(--forest); color: var(--gold); flex: none; }
.xp-meter { height: 9px; width: min(360px,100%); background: rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; margin-top: 1rem; }
.xp-meter span { display: block; height: 100%; background: linear-gradient(90deg,var(--amber),var(--gold)); }
.compact-list { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--small-shadow); }
.compact-list>a { display: flex; justify-content: space-between; gap: 2rem; padding: 1rem 1.3rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.compact-list>a:last-child { border: 0; }
.compact-list small { display: block; color: #76614e; }
.pending-box { margin-top: 2rem; padding: 1.5rem; border: 2px dashed var(--line); border-radius: 10px; }
.pending-box a { display: block; margin: .7rem 0; }
.pending-box span { font-size: .75rem; text-transform: uppercase; color: var(--copper); }
.muted { color: #766b5e; }
.button-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.policy-shell { max-width: 880px; margin: 0 auto; padding: clamp(4rem,8vw,7rem) max(5vw,1.25rem); }
.policy-shell h1 { margin-bottom: 1.5rem; }
.policy-shell h2 { font-size: 1.75rem; margin: 2.8rem 0 .8rem; color: var(--forest); }
.policy-shell p,.policy-shell li { font-size: 1.04rem; }
.policy-lede { font-size: 1.25rem!important; color: var(--ink-soft); border-left: 5px solid var(--amber); padding: .5rem 0 .5rem 1.2rem; }
.policy-shell li { margin: .45rem 0; }
footer { min-height: 280px; padding: 3rem max(5vw,1.25rem) 2.5rem; display: grid; grid-template-columns: 155px minmax(260px,1fr) minmax(260px,.75fr); gap: 2.2rem; align-items: end; color: #e2d0aa; font-size: .84rem; background: linear-gradient(rgba(21,10,7,.12),rgba(21,10,7,.12)),repeating-linear-gradient(92deg,#32180f 0,#472518 23%,#351b12 47%,#4a2819 72%,#2d160e 100%); border-top: 6px solid #b27632; box-shadow: inset 0 12px 35px rgba(0,0,0,.28); overflow: hidden; }
.footer-goblin { width: 145px; max-height: 230px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.footer-about { max-width: 650px; }
.footer-brand { font: 400 1.55rem "Bree Serif",serif; text-decoration: none; color: var(--gold); }
.footer-about p { margin: .55rem 0; }
.footer-about a,.footer-links a { color: #f2c35c; }
.footer-caution { color: #cdb98f; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-end; gap: .75rem 1.1rem; }
.footer-links a { font-weight: 800; }
.footer-links span { flex-basis: 100%; text-align: right; color: #bda982; }
@media(max-width:980px) {
  .site-header { align-items: flex-start; }
  .site-header nav { max-width: 55%; }
  .tavern-hero { min-height: 650px; background-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(18,9,6,.92),rgba(24,11,7,.72) 55%,rgba(24,11,7,.2)); }
  .hero-content { width: min(590px,88%); }
  .recipe-hero,.recipe-body,.form-shell { grid-template-columns: 1fr; }
  .recipe-grid,.notes-grid { grid-template-columns: repeat(2,1fr); }
  .action-tabs { grid-template-columns: 1fr; }
  .recipe-hero-image { max-height: 520px; }
  .form-shell { gap: 2rem; }
  .form-shell>div:first-child { position: static; }
  footer { grid-template-columns: 120px 1fr; }
  .footer-goblin { width: 110px; }
  .footer-links { grid-column: 2; justify-content: flex-start; }
  .footer-links span { text-align: left; }
}
@media(max-width:680px) {
  .site-header { min-height: 72px; padding-top: .6rem; padding-bottom: .6rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand small { display: none; }
  .brand b { font-size: 1.12rem; }
  .site-header nav { max-width: 52%; gap: .05rem; }
  .site-header nav a,.nav-button { font-size: .78rem; padding: .45rem .5rem; }
  .site-header nav a:nth-child(2),.site-header nav a:nth-child(3) { display: none; }
  .tavern-hero { min-height: 720px; align-items: flex-end; background-position: 70% center; }
  .hero-shade { background: linear-gradient(0deg,rgba(17,8,5,.96) 0%,rgba(19,9,6,.8) 55%,rgba(20,9,6,.15) 100%); }
  .hero-content { width: auto; margin: 0; padding: 10rem 1.25rem 6rem; }
  .hero-content h1 { font-size: clamp(2.8rem,13vw,4.2rem); }
  .hero-content>p { font-size: 1.05rem; }
  .hero-sign { left: 1.25rem; right: 1.25rem; font-size: .68rem; }
  .search-row { display: block; }
  .search-row .button { width: 100%; margin-top: .65rem; }
  .feed-section,.community-table,.profile-shell { padding-top: 4rem; padding-bottom: 5rem; }
  .recipe-grid,.notes-grid { grid-template-columns: 1fr; }
  .recipe-stats { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .recipe-stats div:nth-child(2) { border: 0; }
  .recipe-hero { padding-top: 2.5rem; }
  .recipe-hero-image { border-radius: 8px 8px 40px 8px; }
  .profile-card { align-items: flex-start; padding: 1.4rem; }
  .large-avatar { width: 60px; height: 60px; }
  .section-heading { align-items: flex-start; }
  .compact-list>a { display: block; }
  .compact-list>a>span:last-child { display: block; margin-top: .5rem; }
  .policy-shell { padding-top: 3.5rem; }
  footer { display: block; padding-top: 0; }
  .footer-goblin { width: 125px; height: 190px; margin: 0 auto 1rem; }
  .footer-about { text-align: center; }
  .footer-links { justify-content: center; margin-top: 1.5rem; }
  .footer-links span { text-align: center; }
}
