
:root {
  
  --paper: #faf5e6;
  --surface: #f1e9d2;
  --ink: #2f2619;
  --muted: #66583f;
  --line: #e3d9bf;
  --rule: #cdbf9b;
  --accent: #9a6b12;
  --accent-ink: #ffffff;
  --accent-soft: #f3eadb;
  --gold: #c9952b;
  --deep: #5b4214;
  --radius: .75rem;
  --wrap: 72rem;
  --measure: 42rem;
}
.site-head, .site-foot { font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.85; color: var(--ink); }
.site-head *, .site-head *::before, .site-head *::after, .site-foot *, .site-foot *::before, .site-foot *::after { box-sizing: border-box; }
.site-head :focus-visible, .site-foot :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .25rem; }

.wrap { box-sizing: border-box; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }


.site-head { background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem .7rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.brand-logo, .foot-logo { display: block; flex-shrink: 0; }
.brand-logo > img, .brand-logo > svg, .foot-logo > img, .foot-logo > svg { display: block; width: 100%; height: 100%; }
.brand-logo { width: 48px; height: 48px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-type { font-size: .78rem; color: var(--muted); }

.brand-proper { font-size: 1.05rem; font-weight: 700; color: var(--deep, var(--accent)); text-wrap: balance; }
.head-rule { height: 1px; background: var(--rule); position: relative; }
.head-rule::after { content: ""; position: absolute; inset-inline-start: 0; top: -1px; width: 7rem; height: 3px; background: var(--gold, var(--accent)); }

.head-link { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--accent); border-radius: .6rem; color: var(--accent); font-weight: 700; text-decoration: none; flex-shrink: 0; }
.head-link:hover { background: var(--accent-soft); }


.site-nav { display: none; }
.site-nav a, .menu-nav a, .foot-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"], .menu-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.menu { position: relative; flex-shrink: 0; }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: .6rem; display: flex; align-items: center; font-weight: 700; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface); }
.menu-nav { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5; display: flex; flex-direction: column; min-width: 12rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .08); padding: .4rem; }
.menu-nav a { padding: .7rem .8rem; border-radius: .5rem; }
.menu-nav a:hover { background: var(--surface); }


.site-foot { background: var(--surface); padding-block: 0 1.5rem; margin-top: 2rem; }
.foot-rule { height: 1px; background: var(--rule); position: relative; }
.foot-rule::after { content: ""; position: absolute; inset-inline-end: 0; top: -1px; width: 7rem; height: 3px; background: var(--gold, var(--accent)); }
.foot-row { display: grid; gap: 1rem; padding-block: 1.5rem 1rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--deep, var(--accent)); }
.foot-logo { width: 40px; height: 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-contact { font-style: normal; color: var(--muted); font-size: .92rem; display: grid; gap: .25rem; }
.foot-contact a { color: var(--accent); }
.copy { color: var(--muted); font-size: .82rem; margin: 0; }

@media (min-width: 40rem) {
  .brand-proper { font-size: 1.15rem; }
}
@media (min-width: 64rem) {
  .brand-logo { width: 60px; height: 60px; }
  .brand-proper { font-size: 1.35rem; }
  .brand-type { font-size: .85rem; }
  .menu { display: none; }
  .site-nav { display: flex; gap: 1.75rem; flex-shrink: 0; }
  .site-nav a { padding-block: .4rem; font-weight: 700; }
  .foot-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .foot-nav { justify-content: center; }
}
@media print {
  .site-nav, .menu, .head-link { display: none; }
}
