/* style7.css — minimalist, light, responsive */
/* Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  padding: 12px;
  margin: 0;
  color: #222;
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Layout */

.central-title {
  text-align: center;
}

main, .wrap {
  max-width: 72ch;   /* Derek-like readable width */
  margin: 0 auto;
  padding: 1rem;
}
header#masthead, footer.site-footer {
  max-width: 72ch;
  margin: 0 auto;
  padding: 1rem;
}


/* Typography */
h1, h2, h3 {
  margin: 0 0 .5rem;
  text-transform: uppercase;
}
h1 { font-size: 2rem; line-height: 1.2; padding-bottom: 10px;}
h2 { font-size: 1.4rem; line-height: 1.3; 
margin-top: 50px;}
h3 { font-size: 1.1rem; line-height: 1.3; }

p { margin: 1rem 0; }
a { color: #0645ad; text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { text-decoration-thickness: 2px; }

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 2.5rem 0;  /* big gap like Derek */
}

/* Lists */
ul, ol { padding-left: 1.25rem; }
li { margin: .25rem 0; }
li::marker { color: #0a6; }  /* subtle colored bullet */

/* Images */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0;margin-bottom: 15px;}
.center { display: block; margin: 0 auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.gallery img { width: 100%; border-radius: 2px; }

/* Books list (cover + flowing text) */
.book { overflow: auto; padding: 1rem 0; border-top: 1px solid #eee; }
.book .cover {
  float: left;
  width: 120px;
  margin-right: 1rem;
  /* margin: 0 .875rem .5rem 0; 
}
.book .title { margin: 0 0 .4rem; font-size: 1.25rem; }
.book .meta { margin: 0 0 .6rem; color: #666; font-size: .9rem; } */

.book .title {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  text-transform: uppercase; /* если уже глобально для h2 — можно опустить */
}

.book .title a {
  text-decoration: underline; /* всегда подчёркнуто, как у Дерека */
}

.book .meta {
  margin: 0 0 .6rem;
  color: #666;
  font-size: .9rem;
}



/* Blog post list */
.post-list { list-style: disc; }
.post-list a { display: inline; text-decoration: none;}
.post-list a:hover {
  text-decoration: underline;
}

/* Language switch (EN default, RU hidden) */
html[data-lang="en"] .lang--ru { display: none; }
html[data-lang="ru"] .lang--en { display: none; }

.lang-switch {
  display: flex;
  gap: .5rem;
  margin: .5rem 0 1rem;
}
.btn-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #222;
  font: 700 12px/32px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.btn-flag[aria-pressed="true"] {
  background: #e6f5ff;
  border-color: #80c7ff;
}

.signup {
  background: lightgrey;
  width: 33%;
  height: 33%;
border-radius: 5px;
margin:0 20px 50px 15px;
}

/* Notes page details */
.note-header { margin-bottom: .5rem; color: #666; font-size: .95rem; }
.note-links a { margin-right: .5rem; font-size: .95rem; }

/* Tables, code (kept minimal) */
pre, code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
pre { overflow: auto; background: #f6f8fa; padding: .75rem; border-radius: 4px; }
code { background: #f6f8fa; padding: .1rem .25rem; border-radius: 3px; }

/* Utilities */
.muted { color: #666; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 640px) {
  main, .wrap, header#masthead, footer.site-footer { padding: .75rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  body { padding: 12px; }
  .book .cover {
    float: none;
    width: 140px;
    margin: 0 0 .75rem 0;
  }
}
